File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/test/java/edu/kit/datamanager/ro_crate/context Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -99,15 +99,22 @@ void creationFromPairsJsonTest() {
99
99
var objectMapper = MyObjectMapper .getMapper ();
100
100
101
101
ObjectNode rawContext = objectMapper .createObjectNode ();
102
- rawContext .put ("house" , "www.example.con /house" );
103
- rawContext .put ("road" , "www.example.con /road" );
102
+ rawContext .put ("house" , "www.example.com /house" );
103
+ rawContext .put ("road" , "www.example.com /road" );
104
104
105
105
ObjectNode rawCrate = objectMapper .createObjectNode ();
106
106
rawCrate .set ("@context" , rawContext );
107
107
RoCrateMetadataContext newContext = new RoCrateMetadataContext (rawContext );
108
108
assertNotNull (newContext );
109
109
110
110
HelpFunctions .compare (newContext .getContextJsonEntity (), rawCrate , true );
111
+
112
+ var entityWithTerms = new ContextualEntity .ContextualEntityBuilder ()
113
+ .setId ("dkfaj" )
114
+ .addType ("house" )
115
+ .addType ("road" )
116
+ .build ();
117
+ assertTrue (newContext .checkEntity (entityWithTerms ));
111
118
}
112
119
113
120
@ Test
You can’t perform that action at this time.
0 commit comments