Skip to content

Commit 78b1957

Browse files
committed
chore: fix typo in test and add entity check
1 parent 4afd85e commit 78b1957

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/test/java/edu/kit/datamanager/ro_crate/context/RoCrateMetadataContextTest.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,22 @@ void creationFromPairsJsonTest() {
9999
var objectMapper = MyObjectMapper.getMapper();
100100

101101
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");
104104

105105
ObjectNode rawCrate = objectMapper.createObjectNode();
106106
rawCrate.set("@context", rawContext);
107107
RoCrateMetadataContext newContext = new RoCrateMetadataContext(rawContext);
108108
assertNotNull(newContext);
109109

110110
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));
111118
}
112119

113120
@Test

0 commit comments

Comments
 (0)