jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim <maxi...@anahoret.com>
Subject Re[2]: Test question: NodeTest.testRemoveInvalidItemStateException()
Date Thu, 07 Jul 2005 09:53:55 GMT
Hello Marcel.

Thursday, July 7, 2005, 12:01:42 PM, you wrote:

> I agree with you that the test case is too restrictive. The test case
> should try a save and then fail if no InvalidItemStateException is thrown:
>
> Index: NodeTest.java
> ===================================================================
> --- NodeTest.java       (revision 209033)
> +++ NodeTest.java       (working copy)
> @@ -555,6 +555,7 @@
>               // try to remove already deleted node with session 2
>               try {
>                   defaultTestNodeSession2.remove();
> +                testSession.save();
>                   fail("Removing a node already deleted by other session 
> should throw an InvalidItemStateException!");
>               } catch (InvalidItemStateException e) {
>                   //ok, works as expected
>
> WDYT?

Sure this would resolve the issue. But then how this change can be
reflected in the "official" TCK which is available at day.com for
download?

Thank you.

-- 
Best regards, Maxim.
Anahoret Team.


Mime
View raw message