Skip to content

Commit f6f9540

Browse files
author
Yaison
committed
RCB-613: test fix
1 parent e3a9363 commit f6f9540

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

api/src/test/mock-data/response/eng-url-entities.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"mention": "Washington",
2121
"normalized": "Washington",
2222
"type": "LOCATION",
23-
"dbpediaType": "test1",
2423
"dbpediaTypes": [
2524
"test1"
2625
]

json/src/test/data/EntitiesResponse.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"salience": 1.0,
1616
"confidence": 1.0,
1717
"linkingConfidence": 1.0,
18-
"dbpediaType": "test1",
1918
"dbpediaTypes": [
2019
"test1",
2120
"test2"

json/src/test/java/com/basistech/rosette/apimodel/PolymorphicRequestTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ void testRequestTypes() throws Exception {
4242
Request request = mapper.readValue(json, new TypeReference<DocumentRequest<EntitiesOptions>>() { });
4343
assertEquals(DOC_REQUEST, request.getClass().getName());
4444

45-
json = "{\"content\": \"what is my type\", \"language\": \"eng\", \"options\": {\"includeDBpediaType\": true, \"calculateConfidence\": true}}";
45+
json = "{\"content\": \"what is my type\", \"language\": \"eng\", \"options\": {\"includeDBpediaTypes\": true, \"calculateConfidence\": true}}";
4646
request = mapper.readValue(json, new TypeReference<DocumentRequest<EntitiesOptions>>() { });
4747
assertEquals(DOC_REQUEST, request.getClass().getName());
4848
assertNull(((DocumentRequest<EntitiesOptions>) request).getOptions().getIncludePermID());
4949

50-
json = "{\"content\": \"what is my type\", \"language\": \"eng\", \"options\": {\"includeDBpediaType\": true, \"calculateConfidence\": true, \"includePermID\": true}}";
50+
json = "{\"content\": \"what is my type\", \"language\": \"eng\", \"options\": {\"includeDBpediaTypes\": true, \"calculateConfidence\": true, \"includePermID\": true}}";
5151
request = mapper.readValue(json, new TypeReference<DocumentRequest<EntitiesOptions>>() { });
5252
assertEquals(DOC_REQUEST, request.getClass().getName());
5353
assertTrue(((DocumentRequest<EntitiesOptions>) request).getOptions().getIncludePermID());
5454

55-
json = "{\"content\": \"what is my type\", \"language\": \"eng\", \"options\": {\"includeDBpediaType\": true, \"calculateConfidence\": true, \"includePermID\": false}}";
55+
json = "{\"content\": \"what is my type\", \"language\": \"eng\", \"options\": {\"includeDBpediaTypes\": true, \"calculateConfidence\": true, \"includePermID\": false}}";
5656
request = mapper.readValue(json, new TypeReference<DocumentRequest<EntitiesOptions>>() { });
5757
assertEquals(DOC_REQUEST, request.getClass().getName());
5858
assertFalse(((DocumentRequest<EntitiesOptions>) request).getOptions().getIncludePermID());

0 commit comments

Comments
 (0)