jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r582812 - in /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation: AddEventListenerTest.java LockingTest.java
Date Mon, 08 Oct 2007 13:10:21 GMT
Author: reschke
Date: Mon Oct  8 06:10:16 2007
New Revision: 582812

URL: http://svn.apache.org/viewvc?rev=582812&view=rev
Log:
JCR-1164: use convenience method in AbstractJCRTest to check whether a mixin needs to be added.

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/LockingTest.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=582812&r1=582811&r2=582812&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
Mon Oct  8 06:10:16 2007
@@ -189,7 +189,7 @@
     private Node createReferenceable(String nodeName, String nodeType)
             throws RepositoryException {
         Node n = testRootNode.addNode(nodeName, nodeType);
-        if (!n.isNodeType(mixReferenceable)) {
+        if (needsMixin(n, mixReferenceable)) {
             n.addMixin(mixReferenceable);
             // some implementations may require a save after addMixin()
             testRootNode.save();

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/LockingTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/LockingTest.java?rev=582812&r1=582811&r2=582812&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/LockingTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/observation/LockingTest.java
Mon Oct  8 06:10:16 2007
@@ -112,7 +112,7 @@
     private Node createLockable(String nodeName, String nodeType)
             throws RepositoryException {
         Node n = testRootNode.addNode(nodeName, nodeType);
-        if (!n.isNodeType(mixLockable)) {
+        if (needsMixin(n, mixLockable)) {
             n.addMixin(mixLockable);
         }
         return n;



Mime
View raw message