File tree 2 files changed +10
-0
lines changed
main/java/edu/kit/datamanager/ro_crate/entities
test/java/edu/kit/datamanager/ro_crate/crate
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,14 @@ public Set<String> getLinkedTo() {
91
91
return linkedTo ;
92
92
}
93
93
94
+ /**
95
+ * Returns the types of this entity.
96
+ * @return a set of type strings.
97
+ */
98
+ public Set <String > getTypes () {
99
+ return types ;
100
+ }
101
+
94
102
/**
95
103
* Returns a Json object containing the properties of the entity.
96
104
*
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ void testEmptyCrates() throws JsonProcessingException {
38
38
39
39
assertEquals (built .getAllDataEntities (), constructed .getAllDataEntities ());
40
40
assertEquals (built .getAllContextualEntities (), constructed .getAllContextualEntities ());
41
+ assertEquals (built .getJsonDescriptor ().getTypes (), constructed .getJsonDescriptor ().getTypes ());
42
+ assertEquals (built .getJsonDescriptor ().getProperties (), constructed .getJsonDescriptor ().getProperties ());
41
43
HelpFunctions .compareTwoCrateJson (built , constructed );
42
44
}
43
45
}
You can’t perform that action at this time.
0 commit comments