jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1146098 - /jackrabbit/sandbox/spi2microkernel/src/test/java/org/apache/jackrabbit/spi2microkernel/RepositoryTest.java
Date Wed, 13 Jul 2011 15:25:32 GMT
Author: thomasm
Date: Wed Jul 13 15:25:32 2011
New Revision: 1146098

URL: http://svn.apache.org/viewvc?rev=1146098&view=rev
Log:
Can't add nt:resource node

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

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=1146098&r1=1146097&r2=1146098&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
Wed Jul 13 15:25:32 2011
@@ -269,6 +269,17 @@ public class RepositoryTest {
     }
 
     @Test
+    public void addNodeWithNodeType() throws RepositoryException {
+        Session session = getSession();
+        String newNode = testPath + "/newResource\"";
+        assertFalse(session.nodeExists(newNode));
+
+        Node node = getNode(testPath);
+        node.addNode("new", "nt:resource");
+        session.refresh(false);
+    }
+
+    @Test
     public void addNodeToRootNode() throws RepositoryException {
         Session session = getSession();
         Node root = session.getRootNode();
@@ -1056,7 +1067,7 @@ public class RepositoryTest {
     @Test
     public void observationDispose() throws RepositoryException, ExecutionException, TimeoutException,
                 InterruptedException {
-        
+
         final List<Event> failedEvents = new ArrayList<Event>();
 
         final ObservationManager obsMgr = getSession().getWorkspace().getObservationManager();



Mime
View raw message