any23-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hansbre...@apache.org
Subject any23 git commit: removed duplicate of jsonldjava's DocumentLoaderTest.testRemoteContextCaching()
Date Fri, 13 Jul 2018 16:25:20 GMT
Repository: any23
Updated Branches:
  refs/heads/master 4de69214f -> 62d1a8dbe


removed duplicate of jsonldjava's DocumentLoaderTest.testRemoteContextCaching()


Project: http://git-wip-us.apache.org/repos/asf/any23/repo
Commit: http://git-wip-us.apache.org/repos/asf/any23/commit/62d1a8db
Tree: http://git-wip-us.apache.org/repos/asf/any23/tree/62d1a8db
Diff: http://git-wip-us.apache.org/repos/asf/any23/diff/62d1a8db

Branch: refs/heads/master
Commit: 62d1a8dbea47ebd577345acb4b7c7a8f19a8e3fe
Parents: 4de6921
Author: Hans <firedrake93@gmail.com>
Authored: Fri Jul 13 11:22:40 2018 -0500
Committer: Hans <firedrake93@gmail.com>
Committed: Fri Jul 13 11:22:40 2018 -0500

----------------------------------------------------------------------
 .../extractor/rdf/JSONLDExtractorTest.java      | 21 --------------------
 1 file changed, 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/any23/blob/62d1a8db/core/src/test/java/org/apache/any23/extractor/rdf/JSONLDExtractorTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/any23/extractor/rdf/JSONLDExtractorTest.java b/core/src/test/java/org/apache/any23/extractor/rdf/JSONLDExtractorTest.java
index f21e038..1e9aa6f 100644
--- a/core/src/test/java/org/apache/any23/extractor/rdf/JSONLDExtractorTest.java
+++ b/core/src/test/java/org/apache/any23/extractor/rdf/JSONLDExtractorTest.java
@@ -19,7 +19,6 @@ package org.apache.any23.extractor.rdf;
 import java.io.ByteArrayOutputStream;
 import java.io.IOException;
 
-import com.github.jsonldjava.core.DocumentLoader;
 import org.apache.any23.extractor.ExtractionContext;
 import org.apache.any23.extractor.ExtractionException;
 import org.apache.any23.extractor.ExtractionParameters;
@@ -30,7 +29,6 @@ import org.apache.any23.writer.RDFXMLWriter;
 import org.apache.any23.writer.TripleHandler;
 import org.apache.any23.writer.TripleHandlerException;
 import org.junit.After;
-import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 import org.eclipse.rdf4j.model.IRI;
@@ -58,25 +56,6 @@ public class JSONLDExtractorTest {
   }
 
   @Test
-  public void testRemoteContextCaching() throws Exception {
-    DocumentLoader documentLoader = new DocumentLoader();
-    final String[] urls = {"http://schema.org/", "http://schema.org/docs/jsonldcontext.json"};
-    for (String url : urls) {
-      long start = System.currentTimeMillis();
-      for (int i = 1; i <= 1000; i++) {
-        documentLoader.loadDocument(url);
-
-        long seconds = (System.currentTimeMillis() - start) / 1000;
-
-        if (seconds > 60) {
-          Assert.fail(String.format("Took %s seconds to access %s %s times", seconds, url,
i));
-          break;
-        }
-      }
-    }
-  }
-
-  @Test
   public void testExtractFromJSONLDDocument() 
     throws IOException, ExtractionException, TripleHandlerException {
       final IRI uri = RDFUtils.iri("http://host.com/place-example.jsonld");


Mime
View raw message