@@ -228,7 +228,7 @@ public boolean accept(File dir, String name) {
228228 // + name);
229229 // Remote-doc tests are not currently supported
230230 if (name .contains ("remote-doc" )) {
231- // return false;
231+ return false ;
232232 }
233233 return true ;
234234 }
@@ -284,7 +284,8 @@ public RemoteDocument loadDocument(String url) throws JsonLdError {
284284 if (url .startsWith (this .base )) {
285285 String classpath = url .substring (this .base .length ());
286286 final ClassLoader cl = Thread .currentThread ().getContextClassLoader ();
287- final InputStream inputStream = cl .getResourceAsStream (TEST_DIR + "/" + classpath );
287+ final InputStream inputStream = cl .getResourceAsStream (TEST_DIR + "/"
288+ + classpath );
288289 try {
289290 return new RemoteDocument (url , JSONUtils .fromInputStream (inputStream ));
290291 } catch (final IOException e ) {
@@ -298,28 +299,28 @@ public RemoteDocument loadDocument(String url) throws JsonLdError {
298299
299300 public void setRedirectTo (String string ) {
300301 // TODO Auto-generated method stub
301-
302+
302303 }
303304
304305 public void setHttpStatus (Integer integer ) {
305306 // TODO Auto-generated method stub
306-
307+
307308 }
308309
309310 public void setContentType (String string ) {
310311 // TODO Auto-generated method stub
311-
312+
312313 }
313314
314315 public void addHttpLink (String nextLink ) {
315316 // TODO Auto-generated method stub
316-
317+
317318 }
318319 }
319320
320321 @ Rule
321322 public Timeout timeout = new Timeout (10000 );
322-
323+
323324 @ Rule
324325 public TemporaryFolder tempDir = new TemporaryFolder ();
325326
@@ -426,7 +427,8 @@ public void runTest() throws URISyntaxException, IOException, JsonLdError {
426427 // OPTIONS SETUP
427428 final JsonLdOptions options = new JsonLdOptions ("http://json-ld.org/test-suite/tests/"
428429 + test .get ("input" ));
429- TestDocumentLoader testLoader = new TestDocumentLoader ("http://json-ld.org/test-suite/tests/" );
430+ TestDocumentLoader testLoader = new TestDocumentLoader (
431+ "http://json-ld.org/test-suite/tests/" );
430432 options .documentLoader = testLoader ;
431433 if (test .containsKey ("option" )) {
432434 final Map <String , Object > test_opts = (Map <String , Object >) test .get ("option" );
@@ -451,21 +453,21 @@ public void runTest() throws URISyntaxException, IOException, JsonLdError {
451453 options .setProduceGeneralizedRdf ((Boolean ) test_opts .get ("produceGeneralizedRdf" ));
452454 }
453455 if (test_opts .containsKey ("redirectTo" )) {
454- testLoader .setRedirectTo ((String )test_opts .get ("redirectTo" ));
456+ testLoader .setRedirectTo ((String ) test_opts .get ("redirectTo" ));
455457 }
456458 if (test_opts .containsKey ("httpStatus" )) {
457- testLoader .setHttpStatus ((Integer )test_opts .get ("httpStatus" ));
459+ testLoader .setHttpStatus ((Integer ) test_opts .get ("httpStatus" ));
458460 }
459461 if (test_opts .containsKey ("contentType" )) {
460- testLoader .setContentType ((String )test_opts .get ("contentType" ));
462+ testLoader .setContentType ((String ) test_opts .get ("contentType" ));
461463 }
462464 if (test_opts .containsKey ("httpLink" )) {
463- if (test_opts .get ("httpLink" ) instanceof List ) {
464- for (String nextLink : (List <String >)test_opts .get ("httpLink" )) {
465+ if (test_opts .get ("httpLink" ) instanceof List ) {
466+ for (String nextLink : (List <String >) test_opts .get ("httpLink" )) {
465467 testLoader .addHttpLink (nextLink );
466468 }
467469 } else {
468- testLoader .addHttpLink ((String )test_opts .get ("httpLink" ));
470+ testLoader .addHttpLink ((String ) test_opts .get ("httpLink" ));
469471 }
470472 }
471473 }
0 commit comments