You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commonsrdf.apache.org by st...@apache.org on 2016/10/28 10:34:36 UTC

[06/12] incubator-commonsrdf git commit: Don't test relative IRIs

Don't test relative IRIs

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

Branch: refs/heads/COMMONSRDF-46
Commit: 2e160b5839713fe3419775fb8dbdeaa82e089553
Parents: e340604
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Fri Oct 28 10:57:39 2016 +0100
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Fri Oct 28 10:57:39 2016 +0100

----------------------------------------------------------------------
 .../rdf/api/AbstractRDFTermFactoryTest.java     | 26 --------------------
 1 file changed, 26 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/2e160b58/api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTermFactoryTest.java
----------------------------------------------------------------------
diff --git a/api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTermFactoryTest.java b/api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTermFactoryTest.java
index 1ef5b6c..97ee5fa 100644
--- a/api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTermFactoryTest.java
+++ b/api/src/test/java/org/apache/commons/rdf/api/AbstractRDFTermFactoryTest.java
@@ -164,32 +164,6 @@ public abstract class AbstractRDFTermFactoryTest {
     }
 
     @Test
-    public void testCreateIRIRelative() throws Exception {
-        // Although relative IRIs are defined in
-        // http://www.w3.org/TR/rdf11-concepts/#section-IRIs
-        // it is not a requirement for an implementation to support
-        // it (all instances of an relative IRI should eventually
-        // be possible to resolve to an absolute IRI)
-        try {
-            factory.createIRI("../relative");
-        } catch (IllegalArgumentException ex) {
-            Assume.assumeNoException("Relative IRIs not supported - ignore this test", ex);
-            return;
-        }
-        IRI relative = factory.createIRI("../relative");
-        assertEquals("../relative", relative.getIRIString());
-        assertEquals("<../relative>", relative.ntriplesString());
-
-        IRI relativeTerm = factory.createIRI("../relative#term");
-        assertEquals("../relative#term", relativeTerm.getIRIString());
-        assertEquals("<../relative#term>", relativeTerm.ntriplesString());
-
-        IRI emptyRelative = factory.createIRI(""); // <> equals the base URI
-        assertEquals("", emptyRelative.getIRIString());
-        assertEquals("<>", emptyRelative.ntriplesString());
-    }
-
-    @Test
     public void testCreateLiteral() throws Exception {
         Literal example = factory.createLiteral("Example");
         assertEquals("Example", example.getLexicalForm());