jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1159714 - /jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Date Fri, 19 Aug 2011 17:54:33 GMT
Author: mduerig
Date: Fri Aug 19 17:54:32 2011
New Revision: 1159714

URL: http://svn.apache.org/viewvc?rev=1159714&view=rev
Log:
Microkernel based Jackrabbit prototype (WIP)
- tests

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

Modified: jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java?rev=1159714&r1=1159713&r2=1159714&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
(original)
+++ jackrabbit/sandbox/jackrabbit-mk/jackrabbit-spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Fri Aug 19 17:54:32 2011
@@ -124,18 +124,6 @@ public class RepositoryTest {
             session.logout();
             session = null;
         }
-
-//        MicroKernel mk = MicroKernelFactory.getInstance(URL + ";clean");
-//        try {
-//            String head = mk.getHeadRevision();
-//
-//            if (mk.nodeExists("/default/{}" + testNode, head)) {
-//                mk.commit("/default", "-\"{}" + testNode + '\"', head, "");
-//            }
-//        }
-//        finally {
-//            mk.dispose();
-//        }
     }
 
     @Test
@@ -214,6 +202,7 @@ public class RepositoryTest {
     public void getNode() throws RepositoryException {
         Node node = getNode("/foo");
         assertNotNull(node);
+
         assertEquals("foo", node.getName());
         assertEquals("/foo", node.getPath());
     }
@@ -318,6 +307,8 @@ public class RepositoryTest {
         Session session2 = getRepository().login();
         try {
             assertTrue(session2.nodeExists(newNode));
+            Node node2 = session2.getNode(newNode);
+            assertTrue(node2.hasProperty("jcr:primaryType"));
         }
         finally {
             session2.logout();
@@ -1126,7 +1117,7 @@ public class RepositoryTest {
         testNode.getSession().save();
 
         assertTrue(testNode.isNodeType("mix:referenceable"));
-        testNode.getProperty("jcr:uuid");
+        assertTrue(testNode.hasProperty("jcr:uuid"));
     }
 
     @Test



Mime
View raw message