jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Pitfield (JIRA)" <j...@apache.org>
Subject [jira] Closed: (JCR-500) TCK: NamespaceRegistryTest#testUnregisterNamespaceExceptions doesn't fail if expected exception isn't thrown
Date Fri, 04 Aug 2006 19:55:17 GMT
     [ http://issues.apache.org/jira/browse/JCR-500?page=all ]

David Pitfield closed JCR-500.
------------------------------


> TCK: NamespaceRegistryTest#testUnregisterNamespaceExceptions doesn't fail if expected
exception isn't thrown
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-500
>                 URL: http://issues.apache.org/jira/browse/JCR-500
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: test
>            Reporter: David Pitfield
>             Fix For: 1.1
>
>
> In two places, the test doesn't fail if an expected exception isn't thrown.
> Proposal: test should fail if expected exception isn't thrown.
> --- NamespaceRegistryTest.java  (revision 422074)
> +++ NamespaceRegistryTest.java  (working copy)
> @@ -150,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
>              }
> @@ -159,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
>          }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message