Repository: any23
Updated Branches:
  refs/heads/master 4d303c9a5 -> 8cb494ed8


bump sesame to 2.7.10 and fix tests relating to change in behaviour for null 
literal creation

should not be relying on a particular behaviour for null literal creation, in 
particularly not an NPE or assertion error


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

Branch: refs/heads/master
Commit: 8cb494ed876712fba9f07204f35d12632b0596f9
Parents: 4d303c9
Author: Peter Ansell <[email protected]>
Authored: Wed Mar 12 11:09:51 2014 +1100
Committer: Peter Ansell <[email protected]>
Committed: Thu Mar 13 09:23:10 2014 +1100

----------------------------------------------------------------------
 core/src/test/java/org/apache/any23/SesameTest.java | 16 ++--------------
 pom.xml                                             | 12 +++++++++++-
 2 files changed, 13 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/any23/blob/8cb494ed/core/src/test/java/org/apache/any23/SesameTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/any23/SesameTest.java 
b/core/src/test/java/org/apache/any23/SesameTest.java
index 0f07307..5d03583 100644
--- a/core/src/test/java/org/apache/any23/SesameTest.java
+++ b/core/src/test/java/org/apache/any23/SesameTest.java
@@ -43,24 +43,12 @@ public class SesameTest {
             // espected when assertions are enabled.
         } catch (NullPointerException ex) {
             // expected without assertions.
+        } catch (IllegalArgumentException ex) {
+            // expected without assertions.
         }
     }
 
     @Test
-    public void testCreateLiteralWithNullArgumentWorks() {
-        Literal l;
-        try {
-            l = ValueFactoryImpl.getInstance().createLiteral((String) null);
-        } catch (AssertionError ae) {
-            // Expected when assertions are enabled.
-            return;
-        }
-        assertNotNull(l);
-        assertNull(l.stringValue());
-        assertEquals(l, l);
-    }
-
-    @Test
     public void testCreateBNodeWithNullArgumentWorks() {
         BNode b = ValueFactoryImpl.getInstance().createBNode(null);
         assertNull(b.stringValue());

http://git-wip-us.apache.org/repos/asf/any23/blob/8cb494ed/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 5113bd3..7245629 100644
--- a/pom.xml
+++ b/pom.xml
@@ -227,7 +227,7 @@
     <implementation.build>${scmBranch}@r${buildNumber}</implementation.build>
     <implementation.build.tstamp>${implementation.build}; 
${maven.build.timestamp}</implementation.build.tstamp>
     <slf4j.logger.version>1.7.5</slf4j.logger.version>
-    <sesame.version>2.7.5</sesame.version>
+    <sesame.version>2.7.10</sesame.version>
     <latest.stable.released>0.8.0</latest.stable.released>
 
     <!-- Maven Plugin Versions -->
@@ -372,6 +372,11 @@
       </dependency>
       <dependency>
         <groupId>org.openrdf.sesame</groupId>
+        <artifactId>sesame-rio-rdfjson</artifactId>
+        <version>${sesame.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.openrdf.sesame</groupId>
         <artifactId>sesame-repository-sail</artifactId>
         <version>${sesame.version}</version>
       </dependency>
@@ -385,6 +390,11 @@
         <artifactId>sesame-repository-api</artifactId>
         <version>${sesame.version}</version>
       </dependency>
+      <dependency>
+        <groupId>com.github.jsonld-java</groupId>
+        <artifactId>jsonld-java-sesame</artifactId>
+        <version>0.3</version>
+      </dependency>
       <!-- END: Sesame -->
 
       <!-- BEGIN:  Apache Commons -->

Reply via email to