[ http://issues.apache.org/jira/browse/JCR-495?page=all ]
Marcel Reutegger resolved JCR-495.
----------------------------------
Fix Version/s: 1.1
Resolution: Fixed
Fixed as suggested in revision: 425994
Thank you for reporting this issue.
> TCK: SessionReadMethodsTest#testIsLive calls logout() more than once
> --------------------------------------------------------------------
>
> Key: JCR-495
> URL: http://issues.apache.org/jira/browse/JCR-495
> Project: Jackrabbit
> Issue Type: Bug
> Components: test
> Reporter: Nicolas Pombourcq
> Fix For: 1.1
>
>
> SessionReadMethodsTest#testIsLive calls logout more than once in a session
> (once in the test, once in tearDown). JSR-170 doesn't prohibit an
> implementation from throwing an unchecked exception (such as
> IllegalStateException) if logout is called more than once.
> Proposal: change tearDown to test isLive before calling logout.
> --- SessionReadMethodsTest.java (revision 422074)
> +++ SessionReadMethodsTest.java (working copy)
> @@ -57,7 +57,7 @@
> * Releases the session aquired in [EMAIL PROTECTED] #setUp()}.
> */
> protected void tearDown() throws Exception {
> - if (session != null) {
> + if (session != null && session.isLive()) {
> session.logout();
> }
> super.tearDown();
--
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