jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r820894 - in /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version: VersionHistoryTest.java VersionTest.java
Date Fri, 02 Oct 2009 06:11:17 GMT
Author: mreutegg
Date: Fri Oct  2 06:11:17 2009
New Revision: 820894

URL: http://svn.apache.org/viewvc?rev=820894&view=rev
Log:
JCRTCK-17: Ambiguous exception conditions in version tests

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

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/VersionHistoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/VersionHistoryTest.java?rev=820894&r1=820893&r2=820894&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/VersionHistoryTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/VersionHistoryTest.java
Fri Oct  2 06:11:17 2009
@@ -1109,7 +1109,7 @@
         } catch (ConstraintViolationException success) {
         }
         try {
-            vHistory.setProperty(propertyName1, testRootNode);
+            vHistory.setProperty(propertyName1, vHistory);
             vHistory.getSession().save();
             fail("VersionHistory should be read-only: VersionHistory.setProperty(String,Node)
did not throw a ConstraintViolationException");
         } catch (ConstraintViolationException success) {

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/VersionTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/VersionTest.java?rev=820894&r1=820893&r2=820894&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/VersionTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/VersionTest.java
Fri Oct  2 06:11:17 2009
@@ -859,7 +859,7 @@
         } catch (ConstraintViolationException success) {
         }
         try {
-            version.setProperty(propertyName1, testRootNode);
+            version.setProperty(propertyName1, version);
             version.getSession().save();
             fail("Version should be read-only: Version.setProperty(String,Node) did not throw
a ConstraintViolationException");
         } catch (ConstraintViolationException success) {



Mime
View raw message