jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1463930 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/RepositoryTest.java
Date Wed, 03 Apr 2013 11:47:46 GMT
Author: mduerig
Date: Wed Apr  3 11:47:46 2013
New Revision: 1463930

URL: http://svn.apache.org/r1463930
Log:
OAK-738: Assertion error when adding node with expanded name
test case (ignored)

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=1463930&r1=1463929&r2=1463930&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
Wed Apr  3 11:47:46 2013
@@ -18,6 +18,13 @@
  */
 package org.apache.jackrabbit.oak.jcr;
 
+import static java.util.Arrays.asList;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
 import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.io.InputStream;
@@ -73,13 +80,6 @@ import org.junit.Before;
 import org.junit.Ignore;
 import org.junit.Test;
 
-import static java.util.Arrays.asList;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
-
 public class RepositoryTest extends AbstractRepositoryTest {
     private static final String TEST_NODE = "test_node";
     private static final String TEST_PATH = '/' + TEST_NODE;
@@ -491,6 +491,22 @@ public class RepositoryTest extends Abst
     }
 
     @Test
+    @Ignore
+    public void testAddNodeWithExpandedName() throws RepositoryException {
+        Session session = getAdminSession();
+
+        session.getWorkspace().getNamespaceRegistry().registerNamespace("foo", "http://foo");
+
+        Node node = getNode(TEST_PATH);
+        Node added = node.addNode("{http://foo}new");
+        assertEquals("foo:new", added.getName());
+        session.save();
+
+        added = session.getNode(TEST_PATH + "/{http://foo}new");
+        assertEquals("foo:new", added.getName());
+    }
+
+    @Test
     public void addNodeWithSpecialChars() throws RepositoryException {
         Session session = getAdminSession();
         String nodeName = "foo{";



Mime
View raw message