Author: reto
Date: Sat Mar  5 22:07:29 2011
New Revision: 1078370

URL: http://svn.apache.org/viewvc?rev=1078370&view=rev
Log:
CLEREZZA-388: late additions with joined-properties

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=1078370&r1=1078369&r2=1078370&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
 Sat Mar  5 22:07:29 2011
@@ -203,7 +203,7 @@ class GraphIndexerTest {
   }
 
        @Test
-       def testJoinProperty {
+       def joinProperty {
                import VirtualProperties._
                val joinProperty = JoinVirtualProperty(List(FOAF.firstName, 
FOAF.lastName))
                val indexDefinitionManager = new IndexDefinitionManager {
@@ -219,5 +219,17 @@ class GraphIndexerTest {
                        val results = service.findResources(joinProperty,"John 
Doe")
                        Assert.assertEquals(1, results.size)
                }
+    //late addition
+    {
+      //check before
+                 val results = service.findResources(joinProperty, "*Joe*")
+                 Assert.assertEquals(2, results.size)
+    }
+    createPerson("Another Joe", "Simpsons")
+               Thread.sleep(1000);
+    {
+                 val results = service.findResources(joinProperty, "*Joe*")
+                 Assert.assertEquals(3, results.size)
+    }
        }
 }


Reply via email to