jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r523029 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionUUIDTest.java
Date Tue, 27 Mar 2007 18:44:44 GMT
Author: reschke
Date: Tue Mar 27 11:44:43 2007
New Revision: 523029

URL: http://svn.apache.org/viewvc?view=rev&rev=523029
Log:
JCR-817: Session UUID tests: fail early with NotExecutableException when the repository doesn't
support reference properties

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

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionUUIDTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionUUIDTest.java?view=diff&rev=523029&r1=523028&r2=523029
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionUUIDTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionUUIDTest.java
Tue Mar 27 11:44:43 2007
@@ -67,6 +67,10 @@
             throw new NotExecutableException("Cannot test referential integrity. Node is
not referenceable.");
         }
 
+        // abort test if the repository does not allow setting
+        // reference properties on this node
+        ensureCanSetProperty(referencingNode, propertyName1, referencingNode.getSession().getValueFactory().createValue(refTargetNode));
+
         // set the reference
         referencingNode.setProperty(propertyName1, refTargetNode);
 



Mime
View raw message