jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r427963 - /jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NamespaceRegistryTest.java
Date Wed, 02 Aug 2006 12:25:56 GMT
Author: mreutegg
Date: Wed Aug  2 05:25:55 2006
New Revision: 427963

URL: http://svn.apache.org/viewvc?rev=427963&view=rev
Log:
JCR-500: TCK: NamespaceRegistryTest#testUnregisterNamespaceExceptions doesn't fail if expected
exception isn't thrown

Modified:
    jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NamespaceRegistryTest.java

Modified: jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NamespaceRegistryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NamespaceRegistryTest.java?rev=427963&r1=427962&r2=427963&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NamespaceRegistryTest.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NamespaceRegistryTest.java
Wed Aug  2 05:25:55 2006
@@ -154,6 +154,7 @@
         for (int t = 0; t < SYSTEM_PREFIXES.length; t++) {
             try {
                 nsp.unregisterNamespace(SYSTEM_PREFIXES[t]);
+                fail("Trying to unregister " + SYSTEM_PREFIXES[t] + " must fail");
             } catch (NamespaceException e) {
                 // expected behaviour
             }
@@ -163,6 +164,7 @@
         // must throw a NamespaceException.
         try {
             nsp.unregisterNamespace("ThisNamespaceIsNotCurrentlyRegistered");
+            fail("Trying to unregister an unused prefix must fail");
         } catch (NamespaceException e) {
             // expected behaviour
         }



Mime
View raw message