jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r516348 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/VersionHistoryTest.java
Date Fri, 09 Mar 2007 09:53:46 GMT
Author: angela
Date: Fri Mar  9 01:53:46 2007
New Revision: 516348

URL: http://svn.apache.org/viewvc?view=rev&rev=516348
Log:
Wrong failure-message: Message says 'UnsupportedRepositoryOperationException' is expected.
but correct exception is 'ConstraintViolationException', which is catched in case of success.

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/version/VersionHistoryTest.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?view=diff&rev=516348&r1=516347&r2=516348
==============================================================================
--- 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 Mar  9 01:53:46 2007
@@ -686,7 +686,7 @@
         }
         try {
             vHistory.restore(version, "abc", true);
-            fail("VersionHistory.restore(Version,String,boolean) did not throw an UnsupportedRepositoryOperationException");
+            fail("VersionHistory.restore(Version,String,boolean) did not throw an ConstraintViolationException");
         } catch (ConstraintViolationException success) {
         }
     }



Mime
View raw message