jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1213254 - /jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/wrapper/IndexWrapperTest.java
Date Mon, 12 Dec 2011 14:31:49 GMT
Author: thomasm
Date: Mon Dec 12 14:31:49 2011
New Revision: 1213254

URL: http://svn.apache.org/viewvc?rev=1213254&view=rev
Log:
Test.

Modified:
    jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/wrapper/IndexWrapperTest.java

Modified: jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/wrapper/IndexWrapperTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/wrapper/IndexWrapperTest.java?rev=1213254&r1=1213253&r2=1213254&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/wrapper/IndexWrapperTest.java
(original)
+++ jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/wrapper/IndexWrapperTest.java
Mon Dec 12 14:31:49 2011
@@ -39,8 +39,9 @@ public class IndexWrapperTest extends Mu
     @Before
     public void setUp() throws Exception {
         super.setUp();
-        mk = MicroKernelFactory.getInstance("index:" + url);
-        head = mk.getHeadRevision();
+        mk.dispose();
+        url = "index:" + url;
+        mk = MicroKernelFactory.getInstance(url);
     }
 
     @Test
@@ -55,7 +56,6 @@ public class IndexWrapperTest extends Mu
         head = mk.commit("/", "+ \"n4\": { \"value\":\"x:a\" }", head, "");
         String empty = mk.getNodes("/index/prefix:x?x:no", head);
         assertEquals("[]", empty);
-        System.out.println(empty);
         String yes = mk.getNodes("/index/prefix:x?x:yes", head);
         assertEquals("[\"/n2/value\"]", yes);
         String a = mk.getNodes("/index/prefix:x?x:a", head);



Mime
View raw message