jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1355026 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/NodeRemovedTest.java
Date Thu, 28 Jun 2012 14:29:37 GMT
Author: mduerig
Date: Thu Jun 28 14:29:36 2012
New Revision: 1355026

URL: http://svn.apache.org/viewvc?rev=1355026&view=rev
Log:
JCR-3361: Observation tests (wrongly) assume the repository supports event bundling
fix for NodeRemovedTest.testSingleNodeRemoved, NodeRemovedTest.testMultiNodesRemoved 

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/NodeRemovedTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/NodeRemovedTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/NodeRemovedTest.java?rev=1355026&r1=1355025&r2=1355026&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/NodeRemovedTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/NodeRemovedTest.java
Thu Jun 28 14:29:36 2012
@@ -42,10 +42,10 @@ public class NodeRemovedTest extends Abs
      * when a single node is removed.
      */
     public void testSingleNodeRemoved() throws RepositoryException {
-        EventResult result = new EventResult(log);
-        addEventListener(result, Event.NODE_REMOVED);
         Node foo = testRootNode.addNode(nodeName1, testNodeType);
         testRootNode.getSession().save();
+        EventResult result = new EventResult(log);
+        addEventListener(result, Event.NODE_REMOVED);
         foo.remove();
         testRootNode.getSession().save();
         Event[] events = result.getEvents(DEFAULT_WAIT_TIMEOUT);
@@ -58,11 +58,11 @@ public class NodeRemovedTest extends Abs
      * triggered when multiple nodes are removed.
      */
     public void testMultiNodesRemoved() throws RepositoryException {
-        EventResult result = new EventResult(log);
-        addEventListener(result, Event.NODE_REMOVED);
         Node n1 = testRootNode.addNode(nodeName1, testNodeType);
         n1.addNode(nodeName2, testNodeType);
         testRootNode.getSession().save();
+        EventResult result = new EventResult(log);
+        addEventListener(result, Event.NODE_REMOVED);
         n1.remove();
         testRootNode.getSession().save();
         Event[] events = result.getEvents(DEFAULT_WAIT_TIMEOUT);



Mime
View raw message