jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r522953 - in /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api: SetPropertyDoubleTest.java SetValueDoubleTest.java
Date Tue, 27 Mar 2007 15:19:05 GMT
Author: reschke
Date: Tue Mar 27 08:19:04 2007
New Revision: 522953

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

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

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetPropertyDoubleTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetPropertyDoubleTest.java?view=diff&rev=522953&r1=522952&r2=522953
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetPropertyDoubleTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetPropertyDoubleTest.java
Tue Mar 27 08:19:04 2007
@@ -40,6 +40,10 @@
     protected void setUp() throws Exception {
         super.setUp();
         testNode = testRootNode.addNode(nodeName1, testNodeType);
+
+        // abort test if the repository does not allow setting
+        // double properties on this node
+        ensureCanSetProperty(testNode, propertyName1, testNode.getSession().getValueFactory().createValue(0.0d));
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetValueDoubleTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetValueDoubleTest.java?view=diff&rev=522953&r1=522952&r2=522953
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetValueDoubleTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetValueDoubleTest.java
Tue Mar 27 08:19:04 2007
@@ -63,6 +63,10 @@
         // create a new node under the testRootNode
         node = testRootNode.addNode(nodeName1, testNodeType);
 
+        // abort test if the repository does not allow setting
+        // double properties on this node
+        ensureCanSetProperty(node, propertyName1, node.getSession().getValueFactory().createValue(0.0d));
+
         // create a new single-value property and save it
         property1 = node.setProperty(propertyName1, 0.0d);
         superuser.save();



Mime
View raw message