marmotta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wik...@apache.org
Subject git commit: fixed html test
Date Mon, 11 Mar 2013 07:31:49 GMT
Updated Branches:
  refs/heads/master 69a7e2f19 -> cee8f85a8


fixed html test


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

Branch: refs/heads/master
Commit: cee8f85a8cc8ec357a1c32b86cdf751b50371595
Parents: 69a7e2f
Author: Sergio Fernández <wikier@apache.org>
Authored: Mon Mar 11 08:31:09 2013 +0100
Committer: Sergio Fernández <wikier@apache.org>
Committed: Mon Mar 11 08:31:09 2013 +0100

----------------------------------------------------------------------
 .../ldclient/test/rdf/TestLinkedDataProvider.java  |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/cee8f85a/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 9aa6f31..90b0e4e 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
@@ -21,6 +21,7 @@ import java.io.InputStream;
 
 import org.apache.commons.io.IOUtils;
 import org.apache.marmotta.ldclient.api.ldclient.LDClientService;
+import org.apache.marmotta.ldclient.exception.DataRetrievalException;
 import org.apache.marmotta.ldclient.model.ClientResponse;
 import org.apache.marmotta.ldclient.services.ldclient.LDClient;
 import org.apache.marmotta.ldclient.test.helper.TestLDClient;
@@ -46,7 +47,7 @@ public class TestLinkedDataProvider {
     private static final String GEONAMES = "http://sws.geonames.org/3020251/";
     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.orf/foo";
+    private static final String EXAMPLE = "http://example.org/foo";
     
     private LDClientService ldclient;
 
@@ -167,11 +168,10 @@ public class TestLinkedDataProvider {
      * @throws Exception
      *
      */
-    @Test
+    @Test(expected=DataRetrievalException.class)
     public void testNotRDF() throws Exception {
         ClientResponse response = ldclient.retrieveResource(EXAMPLE);
         RepositoryConnection conn = response.getTriples().getConnection(); 
-        //should we expect also an exception here?
         conn.begin();
         Assert.assertTrue(conn.size() == 0);
         conn.commit();


Mime
View raw message