Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin-ebi committed Feb 14, 2024
1 parent 7eaacbf commit 08fcbc6
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,14 @@ void getChromosomesByNameAndAssemblySameNameSameTaxid() {
assertNotNull(page);
assertEquals(2, page.getTotalElements());
List<ChromosomeEntity> entityList = page.get().collect(Collectors.toList());
assertChromosomeEntityIdentical(chromosomeEntities[0], entityList.get(0));
assertChromosomeEntityIdentical(chromosomeEntities[1], entityList.get(1));
ChromosomeEntity first = entityList.stream()
.filter(c->c.getInsdcAccession()==chromosomeEntities[0].getInsdcAccession())
.findFirst().get();
ChromosomeEntity second = entityList.stream()
.filter(c->c.getInsdcAccession()==chromosomeEntities[1].getInsdcAccession())
.findFirst().get();
assertChromosomeEntityIdentical(chromosomeEntities[0], first);
assertChromosomeEntityIdentical(chromosomeEntities[1], second);
}

/**
Expand Down

0 comments on commit 08fcbc6

Please sign in to comment.