You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by bb...@apache.org on 2011/06/23 00:07:46 UTC

svn commit: r1138659 - /incubator/clerezza/trunk/parent/rdf.scala.utils/src/test/scala/org/apache/clerezza/rdf/scala/utils/EasyGraphTest.scala

Author: bblfish
Date: Wed Jun 22 22:07:46 2011
New Revision: 1138659

URL: http://svn.apache.org/viewvc?rev=1138659&view=rev
Log:
CLEREZZA-510 better test method used

Modified:
    incubator/clerezza/trunk/parent/rdf.scala.utils/src/test/scala/org/apache/clerezza/rdf/scala/utils/EasyGraphTest.scala

Modified: incubator/clerezza/trunk/parent/rdf.scala.utils/src/test/scala/org/apache/clerezza/rdf/scala/utils/EasyGraphTest.scala
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/rdf.scala.utils/src/test/scala/org/apache/clerezza/rdf/scala/utils/EasyGraphTest.scala?rev=1138659&r1=1138658&r2=1138659&view=diff
==============================================================================
--- incubator/clerezza/trunk/parent/rdf.scala.utils/src/test/scala/org/apache/clerezza/rdf/scala/utils/EasyGraphTest.scala (original)
+++ incubator/clerezza/trunk/parent/rdf.scala.utils/src/test/scala/org/apache/clerezza/rdf/scala/utils/EasyGraphTest.scala Wed Jun 22 22:07:46 2011
@@ -123,9 +123,9 @@ class EasyGraphTest {
 			 )
 		 )
 		Assert.assertEquals("the two graphs should be of same size",tinyGraph.size(),ez.size())
-		Assert.assertTrue("Both graphs should contain exactly the same triples",tinyGraph.equals(ez.getGraph))
+		Assert.assertEquals("Both graphs should contain exactly the same triples",tinyGraph,ez.getGraph)
 		ez.bnode("danny") ⟝  FOAF.name ⟶  "George"
-		Assert.assertFalse("Added one more triple, so graphs should no longer be equal", tinyGraph.equals(ez.getGraph))
+		Assert.assertNotSame("Added one more triple, so graphs should no longer be equal", tinyGraph,ez.getGraph)
 	}
 
 	@Test
@@ -158,9 +158,9 @@ class EasyGraphTest {
 			 )
 		 )
 		Assert.assertEquals("the two graphs should be of same size",tinyGraph.size(),ez.size())
-		Assert.assertTrue("Both graphs should contain exactly the same triples",tinyGraph.equals(ez.getGraph))
+		Assert.assertEquals("Both graphs should contain exactly the same triples",tinyGraph,ez.getGraph)
 		ez.bnode("danny") -- FOAF.name --> "George"
-		Assert.assertFalse("Added one more triple, so graphs should no longer be equal",tinyGraph.equals(ez.getGraph))
+		Assert.assertNotSame("Added one more triple, so graphs should no longer be equal",tinyGraph,ez.getGraph)
 
 	}