jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r583135 - in /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation: AddEventListenerTest.java NodeRemovedTest.java PropertyRemovedTest.java
Date Tue, 09 Oct 2007 12:22:33 GMT
Author: reschke
Date: Tue Oct  9 05:22:32 2007
New Revision: 583135

URL: http://svn.apache.org/viewvc?rev=583135&view=rev
Log:
JCR-1164: specify the node type when adding nodes

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

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AddEventListenerTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AddEventListenerTest.java?rev=583135&r1=583134&r2=583135&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AddEventListenerTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/AddEventListenerTest.java
Tue Oct  9 05:22:32 2007
@@ -51,7 +51,7 @@
         EventResult listener = new EventResult(log);
         obsMgr.addEventListener(listener, Event.NODE_ADDED, testRoot + "/" + nodeName1, true,
null, null, false);
         Node n = testRootNode.addNode(nodeName1, testNodeType);
-        n.addNode(nodeName2);
+        n.addNode(nodeName2, testNodeType);
         testRootNode.save();
         Event[] events = listener.getEvents(DEFAULT_WAIT_TIMEOUT);
         obsMgr.removeEventListener(listener);
@@ -66,7 +66,7 @@
         EventResult listener = new EventResult(log);
         obsMgr.addEventListener(listener, Event.NODE_ADDED, testRoot + "/" + nodeName1, false,
null, null, false);
         Node n = testRootNode.addNode(nodeName1, testNodeType);
-        n.addNode(nodeName2);
+        n.addNode(nodeName2, testNodeType);
         testRootNode.save();
         Event[] events = listener.getEvents(DEFAULT_WAIT_TIMEOUT);
         obsMgr.removeEventListener(listener);

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=583135&r1=583134&r2=583135&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
Tue Oct  9 05:22:32 2007
@@ -60,7 +60,7 @@
         EventResult result = new EventResult(log);
         addEventListener(result, Event.NODE_REMOVED);
         Node n1 = testRootNode.addNode(nodeName1, testNodeType);
-        n1.addNode(nodeName2);
+        n1.addNode(nodeName2, testNodeType);
         testRootNode.save();
         n1.remove();
         testRootNode.save();

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/PropertyRemovedTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/PropertyRemovedTest.java?rev=583135&r1=583134&r2=583135&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/PropertyRemovedTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/PropertyRemovedTest.java
Tue Oct  9 05:22:32 2007
@@ -43,7 +43,7 @@
      * triggered when a property is removed.
      */
     public void testSinglePropertyRemoved() throws RepositoryException {
-        Node node = testRootNode.addNode(nodeName1);
+        Node node = testRootNode.addNode(nodeName1, testNodeType);
         Property prop1 = node.setProperty(propertyName1, "foo");
         node.setProperty(propertyName2, "bar");
         testRootNode.save();
@@ -61,7 +61,7 @@
      * triggered when multiple properties are removed.
      */
     public void testMultiPropertyRemoved() throws RepositoryException {
-        Node node = testRootNode.addNode(nodeName1);
+        Node node = testRootNode.addNode(nodeName1, testNodeType);
         Property prop1 = node.setProperty(propertyName1, "foo");
         Property prop2 = node.setProperty(propertyName2, "bar");
         testRootNode.save();



Mime
View raw message