On Thu, Aug 20, 2009 at 9:58 AM, Gamba<[email protected]> 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 [email protected]
