You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2006/08/02 14:26:14 UTC

[jira] Resolved: (JCR-500) TCK: NamespaceRegistryTest#testUnregisterNamespaceExceptions doesn't fail if expected exception isn't thrown

     [ http://issues.apache.org/jira/browse/JCR-500?page=all ]

Marcel Reutegger resolved JCR-500.
----------------------------------

    Fix Version/s: 1.1
       Resolution: Fixed

Fixed as suggested in revision: 427963

Thank you for reporting this issue.

> 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