Skip to content

Commit

Permalink
Improve test on empty crate comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pfeil committed Aug 12, 2022
1 parent 9371dea commit 146f40c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ public Set<String> getLinkedTo() {
return linkedTo;
}

/**
* Returns the types of this entity.
* @return a set of type strings.
*/
public Set<String> getTypes() {
return types;
}

/**
* Returns a Json object containing the properties of the entity.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ void testEmptyCrates() throws JsonProcessingException {

assertEquals(built.getAllDataEntities(), constructed.getAllDataEntities());
assertEquals(built.getAllContextualEntities(), constructed.getAllContextualEntities());
assertEquals(built.getJsonDescriptor().getTypes(), constructed.getJsonDescriptor().getTypes());
assertEquals(built.getJsonDescriptor().getProperties(), constructed.getJsonDescriptor().getProperties());
HelpFunctions.compareTwoCrateJson(built, constructed);
}
}

0 comments on commit 146f40c

Please sign in to comment.