Skip to content

Commit

Permalink
Improve subontology test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ielis committed Nov 13, 2023
1 parent 25e82ac commit c985368
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@ public void subOntology() {
assertThat(subOntology.getRootTermId(), equalTo(T02));
assertThat(subOntology.graph().root(), equalTo(T02));

assertThat(subOntology.getTerms().stream().map(Term::id).collect(Collectors.toList()),
containsInAnyOrder(T02, T020, T021, T022));
List<TermId> subTerms = subOntology.getTerms().stream()
.map(Term::id)
.sorted()
.collect(Collectors.toList());
assertThat(subTerms, equalTo(List.of(T02, T020, T021, T022)));

// TODO - test relationships

Expand Down

0 comments on commit c985368

Please sign in to comment.