jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1407115 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
Date Thu, 08 Nov 2012 15:12:38 GMT
Author: angela
Date: Thu Nov  8 15:12:37 2012
New Revision: 1407115

URL: http://svn.apache.org/viewvc?rev=1407115&view=rev
Log:
add another test demonstrating issue OAK-369

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java?rev=1407115&r1=1407114&r2=1407115&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
Thu Nov  8 15:12:37 2012
@@ -179,7 +179,7 @@ public class RepositoryTest extends Abst
         assertTrue(same.isSame(node));
     }
 
-    @Ignore("OAK-369")
+    @Ignore("OAK-369") // FIXME: OAK-369
     @Test
     public void getNode3() throws RepositoryException {
         Node node = getNode("/foo");
@@ -189,6 +189,15 @@ public class RepositoryTest extends Abst
         assertTrue("/".equals(root.getPath()));
     }
 
+    @Ignore("OAK-369") // FIXME: OAK-369
+    @Test
+    public void testAddNode() throws RepositoryException {
+        Node node = getNode("/foo");
+        // add a node with '..' should fail...
+        Node invalid = node.addNode("..");
+        assertTrue(node.getParent().isSame(node.getNode("..")));
+    }
+
     @Test
     public void getNode() throws RepositoryException {
         Node node = getNode("/foo");
@@ -205,7 +214,7 @@ public class RepositoryTest extends Abst
         assertTrue(node.isSame(node2));
     }
 
-    @Ignore("OAK-343")
+    @Ignore("OAK-343") // FIXME: OAK-343
     @Test
     public void getNodeByUUID() throws RepositoryException {
         Node node = getNode("/foo").addNode("boo");



Mime
View raw message