Repository: jena
Updated Branches:
  refs/heads/master 68045fd8a -> 1f2642ad1


JENA-193, JENA-189. Check Jena2 releases go out with RDF 1.1 mods off.

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

Branch: refs/heads/master
Commit: 1f2642ad1ef67db23c891845dbd93781491c928c
Parents: 68045fd
Author: Andy Seaborne <a...@apache.org>
Authored: Sun Nov 2 20:08:26 2014 +0000
Committer: Andy Seaborne <a...@apache.org>
Committed: Sun Nov 2 20:08:26 2014 +0000

----------------------------------------------------------------------
 .../java/com/hp/hpl/jena/test/TestPackage.java  |  3 +-
 .../com/hp/hpl/jena/test/TestSystemSetup.java   | 39 ++++++++++++++++++++
 2 files changed, 41 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/1f2642ad/jena-core/src/test/java/com/hp/hpl/jena/test/TestPackage.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/com/hp/hpl/jena/test/TestPackage.java 
b/jena-core/src/test/java/com/hp/hpl/jena/test/TestPackage.java
index 225c99e..b75da5b 100644
--- a/jena-core/src/test/java/com/hp/hpl/jena/test/TestPackage.java
+++ b/jena-core/src/test/java/com/hp/hpl/jena/test/TestPackage.java
@@ -30,7 +30,7 @@ import com.hp.hpl.jena.assembler.test.TestAssemblerPackage;
  * Note, it is better to name your test suites on creation
  * rather than in this file.
  */
-public class TestPackage extends TestCase{
+public class TestPackage extends TestCase {
 
     static {
        setLog4jConfiguration(JenaTest.log4jFilenameTests) ;
@@ -39,6 +39,7 @@ public class TestPackage extends TestCase{
     static public TestSuite suite() {
         TestSuite ts = new TestSuite() ;
         ts.setName("Jena") ;
+        addTest(ts,  "System setup", TestSystemSetup.suite());
         addTest(ts,  "Enhanced", 
com.hp.hpl.jena.enhanced.test.TestPackage.suite());
         addTest(ts,  "Graph", com.hp.hpl.jena.graph.test.TestPackage.suite());
         addTest(ts,  "Mem", com.hp.hpl.jena.mem.test.TestMemPackage.suite() );

http://git-wip-us.apache.org/repos/asf/jena/blob/1f2642ad/jena-core/src/test/java/com/hp/hpl/jena/test/TestSystemSetup.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/com/hp/hpl/jena/test/TestSystemSetup.java 
b/jena-core/src/test/java/com/hp/hpl/jena/test/TestSystemSetup.java
new file mode 100644
index 0000000..c9c798a
--- /dev/null
+++ b/jena-core/src/test/java/com/hp/hpl/jena/test/TestSystemSetup.java
@@ -0,0 +1,39 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.hp.hpl.jena.test;
+
+import com.hp.hpl.jena.JenaRuntime ;
+
+import junit.framework.TestCase ;
+import junit.framework.TestSuite ;
+
+public class TestSystemSetup extends TestCase {
+
+    public static TestSuite suite() {
+        return new TestSuite(TestSystemSetup.class, "System setup") ;
+    }
+    
+    public void testRDF10() {
+        // This should be "false" in Jena2. 
+        if ( JenaRuntime.isRDF11 )
+            fail("RDF 1.1 mode enabled in Jena2 test run") ;
+    }
+
+}
+

Reply via email to