Skip to content

Commit be64e91

Browse files
committed
issue jsonld-java#214 : Pull test file locally to ensure it doesn't change
Also can easily verify the existence of the UTF BOM this way Signed-off-by: Peter Ansell <p_ansell@yahoo.com>
1 parent 2a761be commit be64e91

2 files changed

Lines changed: 32 additions & 3 deletions

File tree

core/src/test/java/com/github/jsonldjava/core/DocumentLoaderTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ public void fromURLTest0002() throws Exception {
9797
}
9898

9999
@Test
100-
public void fromURLBomTest0003() throws Exception {
101-
final URL url = new URL("http://wellcomelibrary.org/ld/iiif-ext/0/context.json");
102-
final Object context = JsonUtils.fromURL(url, documentLoader.getHttpClient());
100+
public void fromURLBomTest0004() throws Exception {
101+
final URL contexttest = getClass().getResource("/custom/contexttest-0004.jsonld");
102+
assertNotNull(contexttest);
103+
final Object context = JsonUtils.fromURL(contexttest, documentLoader.getHttpClient());
103104
assertTrue(context instanceof Map);
104105
assertFalse(((Map<?, ?>) context).isEmpty());
105106
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"@context": [
3+
{
4+
"wdl": "http://wellcomelibrary.org/iiif-ext/0#",
5+
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
6+
7+
"accessHint": {
8+
"@id": "wdl:accessHint",
9+
"@type": "@vocab"
10+
},
11+
"open": {
12+
"@id": "wdl:openAccess",
13+
"@type": "wdl:accessHint"
14+
},
15+
"clickthrough": {
16+
"@id": "wdl:clickthrough",
17+
"@type": "wdl:accessHint"
18+
},
19+
"credentials": {
20+
"@id": "wdl:credentials",
21+
"@type": "wdl:accessHint"
22+
},
23+
"authService": {
24+
"@id": "wdl:suggestedAuthService"
25+
}
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)