jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [01/50] [abbrv] jena git commit: Remove RDFReaderF/RDFWriterF tests that don't apply in RIOT
Date Sun, 26 Apr 2015 09:41:48 GMT
Repository: jena
Updated Branches:
  refs/heads/master 90376c2f9 -> 4445d8576


Remove RDFReaderF/RDFWriterF tests that don't apply in RIOT


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

Branch: refs/heads/master
Commit: 2c9d53720addcc164f7409d4d66b185cebdfc841
Parents: bd20816
Author: Andy Seaborne <andy@apache.org>
Authored: Fri Apr 24 16:49:10 2015 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Fri Apr 24 16:49:10 2015 +0100

----------------------------------------------------------------------
 .../apache/jena/rdf/model/test/TestReaders.java | 22 --------------------
 .../rdfxml/xmloutput/TestWriterInterface.java   | 20 ------------------
 2 files changed, 42 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/2c9d5372/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestReaders.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestReaders.java b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestReaders.java
index b50873c..c20b774 100644
--- a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestReaders.java
+++ b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestReaders.java
@@ -27,7 +27,6 @@ import org.apache.jena.rdf.model.RDFReader ;
 import org.apache.jena.rdf.model.StmtIterator ;
 import org.apache.jena.rdf.model.test.helpers.TestingModelFactory ;
 import org.apache.jena.shared.JenaException ;
-import org.apache.jena.shared.NoReaderForLangException ;
 import org.junit.Assert ;
 import org.slf4j.LoggerFactory ;
 
@@ -49,27 +48,6 @@ public class TestReaders extends AbstractModelTestBase
         Assert.assertNotNull(reader) ;
     }
 	
-    public void testMissingReader() {
-        model.setReaderClassName("foobar", "") ;
-        try {
-            model.getReader("foobar") ;
-            Assert.fail("Should have thrown NoReaderForLangException") ;
-        }
-        catch (final NoReaderForLangException expected) {
-            // that's what we expect
-        }
-
-        try {
-            model.setReaderClassName("foobar", org.apache.jena.rdfxml.xmlinput.JenaReader.class.getName())
;
-            final RDFReader reader = model.getReader("foobar") ;
-            Assert.assertTrue("Wrong reader type", reader instanceof org.apache.jena.rdfxml.xmlinput.JenaReader)
;
-        }
-        finally {
-            // unset the reader
-            model.setReaderClassName("foobar", "") ;
-        }
-	}
-
     public void testReadLocalNTriple() {
         model.read(getInputStream("TestReaders.nt"), "", "N-TRIPLE") ;
         Assert.assertEquals("Wrong size model", 5, model.size()) ;

http://git-wip-us.apache.org/repos/asf/jena/blob/2c9d5372/jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/TestWriterInterface.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/TestWriterInterface.java
b/jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/TestWriterInterface.java
index 4dd13d8..d6ca6bc 100644
--- a/jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/TestWriterInterface.java
+++ b/jena-core/src/test/java/org/apache/jena/rdfxml/xmloutput/TestWriterInterface.java
@@ -26,7 +26,6 @@ import org.apache.jena.rdf.model.impl.NTripleWriter ;
 import org.apache.jena.rdf.model.test.ModelTestBase ;
 import org.apache.jena.rdfxml.xmloutput.impl.Abbreviated ;
 import org.apache.jena.rdfxml.xmloutput.impl.Basic ;
-import org.apache.jena.shared.NoWriterForLangException ;
 
 public class TestWriterInterface extends ModelTestBase {
     private String lang;
@@ -71,25 +70,6 @@ public class TestWriterInterface extends ModelTestBase {
             m1.getWriter("N-TRIPLE") instanceof NTripleWriter);
     }
 
-    public void testNoWriter() {
-        Model m1 = createMemModel();
-        try {
-            m1.setWriterClassName("foobar", "");
-            m1.getWriter("foobar");
-            fail("Missing Writer undetected.");
-        } catch (NoWriterForLangException jx) {
-            // that's what we expected
-        }
-    }
-
-    public void testAnotherWriter() {
-        Model m1 = createMemModel();
-        m1.setWriterClassName("foobar", org.apache.jena.rdfxml.xmloutput.impl.Basic.class.getName());
-        assertTrue(
-            "Failed to access set writer",
-            (m1.getWriter("foobar") instanceof Basic));
-    }
-
     public void testWriting() {
         Model m1 = createMemModel();
         try ( ByteArrayOutputStream out = new ByteArrayOutputStream() ) {


Mime
View raw message