jackrabbit-oak-commits mailing list archives

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

URL: http://svn.apache.org/r1463964
Log:
OAK-509: Item names starting with '{X}' cause RepositoryException
test case for observation

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=1463964&r1=1463963&r2=1463964&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 12:39:54 2013
@@ -1820,7 +1820,8 @@ public class RepositoryTest extends Abst
         final Set<String> addNodes = Sets.newHashSet(
                 TEST_PATH + "/1",
                 TEST_PATH + "/2",
-                TEST_PATH + "/3");
+                TEST_PATH + "/3",
+                TEST_PATH + "/{4}");
 
         final Set<String> removeNodes = Sets.newHashSet(
                 TEST_PATH + "/2");
@@ -1833,6 +1834,7 @@ public class RepositoryTest extends Abst
                 TEST_PATH + "/1/jcr:primaryType",
                 TEST_PATH + "/2/jcr:primaryType",
                 TEST_PATH + "/3/jcr:primaryType",
+                TEST_PATH + "/{4}/jcr:primaryType",
                 TEST_PATH + "/3/prop3");
 
         final Set<String> setProperties = Sets.newHashSet(
@@ -1906,8 +1908,8 @@ public class RepositoryTest extends Abst
                     }
                 }
             },
-                    Event.NODE_ADDED | Event.NODE_REMOVED | Event.NODE_MOVED | Event.PROPERTY_ADDED
|
-                            Event.PROPERTY_REMOVED | Event.PROPERTY_CHANGED | Event.PERSIST,
"/", true, null, null, false);
+            Event.NODE_ADDED | Event.NODE_REMOVED | Event.NODE_MOVED | Event.PROPERTY_ADDED
|
+                    Event.PROPERTY_REMOVED | Event.PROPERTY_CHANGED | Event.PERSIST, "/",
true, null, null, false);
 
             eventCount.set(new CountDownLatch(7));
             Node n = getNode(TEST_PATH);
@@ -1919,12 +1921,13 @@ public class RepositoryTest extends Abst
             getAdminSession().save();
             assertTrue(eventCount.get().await(2, TimeUnit.SECONDS));
 
-            eventCount.set(new CountDownLatch(8));
+            eventCount.set(new CountDownLatch(10));
             n.setProperty("property", 42);
             n.addNode("3").setProperty("prop3", "val3");
             n1.setProperty("prop1", "val1 new");
             n1.getProperty("prop2").remove();
             n.getNode("2").remove();
+            n.addNode("{4}");
             getAdminSession().save();
             assertTrue(eventCount.get().await(2, TimeUnit.SECONDS));
 



Mime
View raw message