You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ss...@apache.org on 2013/12/19 14:20:11 UTC
git commit: fix tests,
infinispan is not a normal in-memory cache and so object equality is
not guaranteed
Updated Branches:
refs/heads/develop 2de10ee76 -> f94823e46
fix tests, infinispan is not a normal in-memory cache and so object equality is not guaranteed
Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/f94823e4
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/f94823e4
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/f94823e4
Branch: refs/heads/develop
Commit: f94823e46005e27f8359072f3dbbcf8d5231f726
Parents: 2de10ee
Author: Sebastian Schaffert <ss...@apache.org>
Authored: Thu Dec 19 14:20:06 2013 +0100
Committer: Sebastian Schaffert <ss...@apache.org>
Committed: Thu Dec 19 14:20:06 2013 +0100
----------------------------------------------------------------------
.../marmotta/kiwi/test/PersistenceTest.java | 116 +++++++++----------
1 file changed, 58 insertions(+), 58 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/marmotta/blob/f94823e4/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/PersistenceTest.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/PersistenceTest.java b/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/PersistenceTest.java
index 70bcaf3..69cb81e 100644
--- a/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/PersistenceTest.java
+++ b/libraries/kiwi/kiwi-triplestore/src/test/java/org/apache/marmotta/kiwi/test/PersistenceTest.java
@@ -113,7 +113,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(uri,testUri1);
- Assert.assertTrue(uri == testUri1);
+ //Assert.assertTrue(uri == testUri1);
connection.commit();
@@ -121,14 +121,14 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(uri,testUri2);
- Assert.assertTrue(uri == testUri2);
+ //Assert.assertTrue(uri == testUri2);
KiWiNode testUri3 = connection.loadUriResource(uri.stringValue());
// needs to be equal, and should also be the identical object!
Assert.assertEquals(uri,testUri3);
- Assert.assertTrue(uri == testUri3);
+ //Assert.assertTrue(uri == testUri3);
connection.commit();
@@ -142,13 +142,13 @@ public class PersistenceTest {
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(uri,testUri4);
- Assert.assertTrue(uri != testUri4);
+ //Assert.assertTrue(uri != testUri4);
KiWiNode testUri5 = connection.loadUriResource(uri.stringValue());
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(uri,testUri5);
- Assert.assertTrue(uri != testUri5);
+ //Assert.assertTrue(uri != testUri5);
connection.commit();
@@ -190,7 +190,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(bnode,testBNode1);
- Assert.assertTrue(bnode == testBNode1);
+ //Assert.assertTrue(bnode == testBNode1);
connection.commit();
@@ -198,14 +198,14 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(bnode,testBNode2);
- Assert.assertTrue(bnode == testBNode2);
+ //Assert.assertTrue(bnode == testBNode2);
KiWiNode testBNode3 = connection.loadAnonResource(bnode.stringValue());
// needs to be equal, and should also be the identical object!
Assert.assertEquals(bnode,testBNode3);
- Assert.assertTrue(bnode == testBNode3);
+ //Assert.assertTrue(bnode == testBNode3);
connection.commit();
@@ -218,13 +218,13 @@ public class PersistenceTest {
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(bnode,testBNode4);
- Assert.assertTrue(bnode != testBNode4);
+ //Assert.assertTrue(bnode != testBNode4);
KiWiNode testBNode5 = connection.loadAnonResource(bnode.stringValue());
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(bnode,testBNode5);
- Assert.assertTrue(bnode != testBNode5);
+ //Assert.assertTrue(bnode != testBNode5);
connection.commit();
@@ -269,7 +269,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral1);
- Assert.assertTrue(literal == testLiteral1);
+ //Assert.assertTrue(literal == testLiteral1);
connection.commit();
@@ -277,13 +277,13 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral2);
- Assert.assertTrue(literal == testLiteral2);
+ //Assert.assertTrue(literal == testLiteral2);
KiWiNode testLiteral3 = connection.loadLiteral(literal.stringValue(), null, stype);
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral3);
- Assert.assertTrue(literal == testLiteral3);
+ //Assert.assertTrue(literal == testLiteral3);
connection.commit();
@@ -294,13 +294,13 @@ public class PersistenceTest {
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral4);
- Assert.assertTrue(literal != testLiteral4);
+ //Assert.assertTrue(literal != testLiteral4);
KiWiNode testLiteral5 = connection.loadLiteral(literal.stringValue(),null,stype);
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral5);
- Assert.assertTrue(literal != testLiteral5);
+ //Assert.assertTrue(literal != testLiteral5);
connection.commit();
@@ -348,7 +348,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral1);
- Assert.assertTrue(literal == testLiteral1);
+ //Assert.assertTrue(literal == testLiteral1);
connection.commit();
@@ -356,13 +356,13 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral2);
- Assert.assertTrue(literal == testLiteral2);
+ //Assert.assertTrue(literal == testLiteral2);
KiWiNode testLiteral3 = connection.loadLiteral(literal.stringValue(),Locale.ENGLISH.getLanguage(),null);
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral3);
- Assert.assertTrue(literal == testLiteral3);
+ //Assert.assertTrue(literal == testLiteral3);
connection.commit();
@@ -373,13 +373,13 @@ public class PersistenceTest {
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral4);
- Assert.assertTrue(literal != testLiteral4);
+ //Assert.assertTrue(literal != testLiteral4);
KiWiNode testLiteral5 = connection.loadLiteral(literal.stringValue(),Locale.ENGLISH.getLanguage(),null);
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral5);
- Assert.assertTrue(literal != testLiteral5);
+ //Assert.assertTrue(literal != testLiteral5);
connection.commit();
@@ -427,7 +427,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral1);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral1).getType());
- Assert.assertTrue(literal == testLiteral1);
+ //Assert.assertTrue(literal == testLiteral1);
connection.commit();
@@ -436,14 +436,14 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral2);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral2).getType());
- Assert.assertTrue(literal == testLiteral2);
+ //Assert.assertTrue(literal == testLiteral2);
KiWiNode testLiteral3 = connection.loadLiteral(literal.stringValue(),null,uri);
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral3);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral3).getType());
- Assert.assertTrue(literal == testLiteral3);
+ //Assert.assertTrue(literal == testLiteral3);
connection.commit();
@@ -455,14 +455,14 @@ public class PersistenceTest {
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral4);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral4).getType());
- Assert.assertTrue(literal != testLiteral4);
+ //Assert.assertTrue(literal != testLiteral4);
KiWiNode testLiteral5 = connection.loadLiteral(literal.stringValue(),null,uri);
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral5);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral5).getType());
- Assert.assertTrue(literal != testLiteral5);
+ //Assert.assertTrue(literal != testLiteral5);
connection.commit();
@@ -509,7 +509,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral1);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral1).getType());
- Assert.assertTrue(literal == testLiteral1);
+ //Assert.assertTrue(literal == testLiteral1);
connection.commit();
@@ -518,14 +518,14 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral2);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral2).getType());
- Assert.assertTrue(literal == testLiteral2);
+ //Assert.assertTrue(literal == testLiteral2);
KiWiNode testLiteral3 = connection.loadLiteral(literal.stringValue(),null,uri);
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral3);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral3).getType());
- Assert.assertTrue(literal == testLiteral3);
+ //Assert.assertTrue(literal == testLiteral3);
connection.commit();
@@ -537,14 +537,14 @@ public class PersistenceTest {
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral4);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral4).getType());
- Assert.assertTrue(literal != testLiteral4);
+ //Assert.assertTrue(literal != testLiteral4);
KiWiNode testLiteral5 = connection.loadLiteral(literal.stringValue(),null,uri);
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral5);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral5).getType());
- Assert.assertTrue(literal != testLiteral5);
+ //Assert.assertTrue(literal != testLiteral5);
connection.commit();
@@ -596,7 +596,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral1);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral1).getType());
- Assert.assertTrue(literal == testLiteral1);
+ //Assert.assertTrue(literal == testLiteral1);
connection.commit();
@@ -605,14 +605,14 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral2);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral2).getType());
- Assert.assertTrue(literal == testLiteral2);
+ //Assert.assertTrue(literal == testLiteral2);
KiWiNode testLiteral3 = connection.loadLiteral(literal.stringValue(),null,uri);
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral3);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral3).getType());
- Assert.assertTrue(literal == testLiteral3);
+ //Assert.assertTrue(literal == testLiteral3);
// load by integer value
@@ -621,7 +621,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral6);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral6).getType());
- Assert.assertTrue(literal == testLiteral6);
+ //Assert.assertTrue(literal == testLiteral6);
connection.commit();
@@ -634,14 +634,14 @@ public class PersistenceTest {
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral4);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral4).getType());
- Assert.assertTrue(literal != testLiteral4);
+ //Assert.assertTrue(literal != testLiteral4);
KiWiNode testLiteral5 = connection.loadLiteral(literal.stringValue(),null,uri);
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral5);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral5).getType());
- Assert.assertTrue(literal != testLiteral5);
+ //Assert.assertTrue(literal != testLiteral5);
// load by integer value
@@ -650,7 +650,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral7);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral7).getType());
- Assert.assertTrue(literal != testLiteral7);
+ //Assert.assertTrue(literal != testLiteral7);
connection.commit();
@@ -701,7 +701,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral1);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral1).getType());
- Assert.assertTrue(literal == testLiteral1);
+ //Assert.assertTrue(literal == testLiteral1);
connection.commit();
@@ -710,14 +710,14 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral2);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral2).getType());
- Assert.assertTrue(literal == testLiteral2);
+ //Assert.assertTrue(literal == testLiteral2);
KiWiNode testLiteral3 = connection.loadLiteral(literal.stringValue(),null,uri);
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral3);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral3).getType());
- Assert.assertTrue(literal == testLiteral3);
+ //Assert.assertTrue(literal == testLiteral3);
// load by integer value
@@ -726,7 +726,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral6);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral6).getType());
- Assert.assertTrue(literal == testLiteral6);
+ //Assert.assertTrue(literal == testLiteral6);
connection.commit();
@@ -739,14 +739,14 @@ public class PersistenceTest {
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral4);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral4).getType());
- Assert.assertTrue(literal != testLiteral4);
+ //Assert.assertTrue(literal != testLiteral4);
KiWiNode testLiteral5 = connection.loadLiteral(literal.stringValue(),null,uri);
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral5);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral5).getType());
- Assert.assertTrue(literal != testLiteral5);
+ //Assert.assertTrue(literal != testLiteral5);
// load by integer value
@@ -755,7 +755,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral7);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral7).getType());
- Assert.assertTrue(literal != testLiteral7);
+ //Assert.assertTrue(literal != testLiteral7);
connection.commit();
@@ -805,7 +805,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral1);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral1).getType());
- Assert.assertTrue(literal == testLiteral1);
+ //Assert.assertTrue(literal == testLiteral1);
connection.commit();
@@ -814,14 +814,14 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral2);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral2).getType());
- Assert.assertTrue(literal == testLiteral2);
+ //Assert.assertTrue(literal == testLiteral2);
KiWiNode testLiteral3 = connection.loadLiteral(literal.stringValue(),null,uri);
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral3);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral3).getType());
- Assert.assertTrue(literal == testLiteral3);
+ //Assert.assertTrue(literal == testLiteral3);
// load by integer value
@@ -830,7 +830,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral6);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral6).getType());
- Assert.assertTrue(literal == testLiteral6);
+ //Assert.assertTrue(literal == testLiteral6);
connection.commit();
@@ -843,14 +843,14 @@ public class PersistenceTest {
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral4);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral4).getType());
- Assert.assertTrue(literal != testLiteral4);
+ //Assert.assertTrue(literal != testLiteral4);
KiWiNode testLiteral5 = connection.loadLiteral(literal.stringValue(),null,uri);
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral5);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral5).getType());
- Assert.assertTrue(literal != testLiteral5);
+ //Assert.assertTrue(literal != testLiteral5);
// load by integer value
@@ -859,7 +859,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral7);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral7).getType());
- Assert.assertTrue(literal != testLiteral7);
+ //Assert.assertTrue(literal != testLiteral7);
connection.commit();
@@ -908,7 +908,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral1);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral1).getType());
- Assert.assertTrue(literal == testLiteral1);
+ //Assert.assertTrue(literal == testLiteral1);
connection.commit();
@@ -917,14 +917,14 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral2);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral2).getType());
- Assert.assertTrue(literal == testLiteral2);
+ //Assert.assertTrue(literal == testLiteral2);
KiWiNode testLiteral3 = connection.loadLiteral(literal.stringValue(),null,uri);
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral3);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral3).getType());
- Assert.assertTrue(literal == testLiteral3);
+ //Assert.assertTrue(literal == testLiteral3);
// load by integer value
@@ -933,7 +933,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral6);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral6).getType());
- Assert.assertTrue(literal == testLiteral6);
+ //Assert.assertTrue(literal == testLiteral6);
connection.commit();
@@ -946,14 +946,14 @@ public class PersistenceTest {
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral4);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral4).getType());
- Assert.assertTrue(literal != testLiteral4);
+ //Assert.assertTrue(literal != testLiteral4);
KiWiNode testLiteral5 = connection.loadLiteral(literal.stringValue(),null,uri);
// needs to be equal, but now it should not be the same object!
Assert.assertEquals(literal,testLiteral5);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral5).getType());
- Assert.assertTrue(literal != testLiteral5);
+ //Assert.assertTrue(literal != testLiteral5);
// load by integer value
@@ -962,7 +962,7 @@ public class PersistenceTest {
// needs to be equal, and should also be the identical object!
Assert.assertEquals(literal,testLiteral7);
Assert.assertEquals(uri,((KiWiLiteral)testLiteral7).getType());
- Assert.assertTrue(literal != testLiteral7);
+ //Assert.assertTrue(literal != testLiteral7);
connection.commit();