jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Own nodes with mix:lockable
Date Thu, 20 Aug 2009 12:58:17 GMT
On Thu, Aug 20, 2009 at 9:58 AM, Gamba<holger.breuer@handelshof.de> wrote:
>        // stop node-locking on logout(), because of  session-scoped lock ... I
> thought ...
>        session.save();
>        session.logout();
>
>        // LockExcpetion is thrown
>        assertFalse("Node is still logged, after session-logout",
> nodeToLock.isLocked());
> }

I think the error lies in this test: after logging out, the node
objects are not valid for usage anymore. To test it properly, create a
new session, re-fetch the node in question and then check the
isLocked() method.

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message