jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: TCK: NodeTest.testRemoveInvalidItemStateException()
Date Tue, 28 Feb 2006 09:13:18 GMT
Hi Gena,

same here. this has been changed already:
http://svn.apache.org/viewcvs.cgi/incubator/jackrabbit/trunk/core/src/test/org/apache/jackrabbit/test/api/NodeTest.java?rev=209590&r1=208754&r2=209590&diff_format=h

See also:
http://thread.gmane.org/gmane.comp.apache.jackrabbit.devel/2674

regards
  marcel

Gennady Azarenkov wrote:
> hi,
> 
> It seems that 
>          testSession.save();
> should be added after 
>          defaultTestNodeSession2.remove();
> 
> in the NodeTest.testRemoveInvalidItemStateException()
>          try {
>                 defaultTestNodeSession2.remove();
>                 fail("Removing a node already deleted by other session should throw an
InvalidItemStateException!");
>             } catch (InvalidItemStateException e) {
>                 //ok, works as expected
>             }
> as InvalidItemStateException  can be thrown by save()
> 
> regards,
> 
> gena
> 
> 


Mime
View raw message