jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1133806 - in /jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel: MicrokernelTest.java RepositoryTest.java
Date Thu, 09 Jun 2011 11:45:25 GMT
Author: mduerig
Date: Thu Jun  9 11:45:25 2011
New Revision: 1133806

URL: http://svn.apache.org/viewvc?rev=1133806&view=rev
Log:
spi2microkernel prototype (WIP)
adapted test cases

Modified:
    jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
    jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java

Modified: jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java?rev=1133806&r1=1133805&r2=1133806&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/MicrokernelTest.java
Thu Jun  9 11:45:25 2011
@@ -25,8 +25,8 @@ import org.json.simple.JSONArray;
 import org.json.simple.JSONObject;
 import org.json.simple.parser.JSONParser;
 import org.json.simple.parser.ParseException;
+import org.junit.After;
 import org.junit.Before;
-import org.junit.Ignore;
 import org.junit.Test;
 
 import static org.junit.Assert.assertEquals;
@@ -53,6 +53,11 @@ public class MicrokernelTest {
         }
     }
 
+    @After
+    public void tearDown() {
+        getMicroKernel().dispose();
+    }
+
     @Test
     public void missingName() {
         MicroKernel mk = getMicroKernel();

Modified: jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java?rev=1133806&r1=1133805&r2=1133806&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Thu Jun  9 11:45:25 2011
@@ -47,7 +47,7 @@ import static org.junit.Assert.*;
 
 public class RepositoryTest {
 
-    private static final String URL = "fs:target/repository-test/repository;clean";
+    private static final String URL = "fs:target/repository-test/repository";
 
     private final String testNode = "node_" + System.currentTimeMillis();
     private final String testPath = '/' + testNode;
@@ -56,7 +56,7 @@ public class RepositoryTest {
 
     @Before
     public void setup() {
-        MicroKernel mk = MicroKernelFactory.getInstance(URL);
+        MicroKernel mk = MicroKernelFactory.getInstance(URL + ";clean");
         String head = mk.getHeadRevision();
 
         if (!mk.nodeExists("/default", head)) {
@@ -72,6 +72,8 @@ public class RepositoryTest {
         if (!mk.nodeExists("/default/{}" + testNode, head)) {
             mk.commit("/default", "+{}" + testNode + " : {}", head);
         }
+
+        mk.dispose();
     }
 
     @After



Mime
View raw message