clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1078460 - /incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/test/scala/org/apache/clerezza/rdf/cris/GraphIndexerTest.scala
Date Sun, 06 Mar 2011 12:22:13 GMT
Author: reto
Date: Sun Mar  6 12:22:12 2011
New Revision: 1078460

URL: http://svn.apache.org/viewvc?rev=1078460&view=rev
Log:
CLEREZZA-388: added late addition of tail of indexed path-property

Modified:
    incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/test/scala/org/apache/clerezza/rdf/cris/GraphIndexerTest.scala

Modified: incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/test/scala/org/apache/clerezza/rdf/cris/GraphIndexerTest.scala
URL: http://svn.apache.org/viewvc/incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/test/scala/org/apache/clerezza/rdf/cris/GraphIndexerTest.scala?rev=1078460&r1=1078459&r2=1078460&view=diff
==============================================================================
--- incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/test/scala/org/apache/clerezza/rdf/cris/GraphIndexerTest.scala
(original)
+++ incubator/clerezza/issues/CLEREZZA-388/rdf.cris/core/src/test/scala/org/apache/clerezza/rdf/cris/GraphIndexerTest.scala
Sun Mar  6 12:22:12 2011
@@ -253,5 +253,19 @@ class GraphIndexerTest {
 			val results = service.findResources(pathProperty,"Silvio")
 			Assert.assertEquals(1, results.size)
 		}
+    //and a late addtition, lets give Frank a pet
+    import collection.JavaConversions._
+    val frank = service.findResources(FOAF.firstName,"Frank").head
+    val p = new Preamble(dataGraph)
+    import p._
+    val pet = new BNode
+    frank.addProperty(ownsPetProperty, pet)
+    //Silvio has become a quite popular pet-name
+    pet.addPropertyValue(FOAF.name, "Silvio")
+    Thread.sleep(1000);
+    {
+		  val results = service.findResources(pathProperty,"Silvio")
+		  Assert.assertEquals(2, results.size)
+    }
   }
 }



Mime
View raw message