Repository: marmotta
Updated Branches:
  refs/heads/develop 564282f0a -> b24553cdc


added a test according a user report


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

Branch: refs/heads/develop
Commit: b24553cdc877e5f39361c4dd7f0994b46b3ad707
Parents: 564282f
Author: Sergio Fernández <[email protected]>
Authored: Fri Sep 19 14:53:38 2014 +0200
Committer: Sergio Fernández <[email protected]>
Committed: Fri Sep 19 14:53:38 2014 +0200

----------------------------------------------------------------------
 .../ldclient/test/rdf/TestLinkedDataProvider.java | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/b24553cd/libraries/ldclient/ldclient-provider-rdf/src/test/java/org/apache/marmotta/ldclient/test/rdf/TestLinkedDataProvider.java
----------------------------------------------------------------------
diff --git 
a/libraries/ldclient/ldclient-provider-rdf/src/test/java/org/apache/marmotta/ldclient/test/rdf/TestLinkedDataProvider.java
 
b/libraries/ldclient/ldclient-provider-rdf/src/test/java/org/apache/marmotta/ldclient/test/rdf/TestLinkedDataProvider.java
index dca38de..6fccc1d 100644
--- 
a/libraries/ldclient/ldclient-provider-rdf/src/test/java/org/apache/marmotta/ldclient/test/rdf/TestLinkedDataProvider.java
+++ 
b/libraries/ldclient/ldclient-provider-rdf/src/test/java/org/apache/marmotta/ldclient/test/rdf/TestLinkedDataProvider.java
@@ -17,12 +17,15 @@
  */
 package org.apache.marmotta.ldclient.test.rdf;
 
+import org.apache.marmotta.commons.sesame.model.ModelCommons;
 import org.apache.marmotta.ldclient.exception.DataRetrievalException;
 import org.apache.marmotta.ldclient.model.ClientResponse;
 import org.apache.marmotta.ldclient.test.provider.ProviderTestBase;
 import org.junit.Assert;
+import org.junit.Assume;
 import org.junit.Ignore;
 import org.junit.Test;
+import org.openrdf.repository.RepositoryConnection;
 
 /**
  * Test if the LinkedDataProvider is working properly.
@@ -34,6 +37,7 @@ public class TestLinkedDataProvider extends ProviderTestBase {
 
     private static final String DBPEDIA = "http://dbpedia.org/resource/Berlin";;
     private static final String GEONAMES = "http://sws.geonames.org/3020251/";;
+    private static final String GEONAMES2 = 
"http://sws.geonames.org/2658434/about.rdf";;
     private static final String MARMOTTA = 
"http://rdfohloh.wikier.org/project/marmotta";;
     private static final String WIKIER = "http://www.wikier.org/foaf#wikier";;
     private static final String EXAMPLE = "http://example.org/foo";;
@@ -63,6 +67,20 @@ public class TestLinkedDataProvider extends ProviderTestBase 
{
         testResource(GEONAMES, "geonames-embrun.sparql");
     }
 
+    @Test
+    @Ignore("just to debug a user report")
+    public void testGeoNames2() throws Exception {
+        Assume.assumeTrue(ldclient.ping(GEONAMES2));
+
+        ClientResponse response = ldclient.retrieveResource(GEONAMES2);
+
+        RepositoryConnection connection = 
ModelCommons.asRepository(response.getData()).getConnection();
+        connection.begin();
+        Assert.assertTrue(connection.size() == 7);
+        connection.commit();
+        connection.close();
+    }
+
     /**
      * This method tests accessing the RDFohloh Linked Data service, 
      * which uses HTTP negotiation with redirection to provide RDF.

Reply via email to