jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r758634 - /jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authentication/NullLoginTest.java
Date Thu, 26 Mar 2009 13:37:34 GMT
Author: angela
Date: Thu Mar 26 13:37:28 2009
New Revision: 758634

URL: http://svn.apache.org/viewvc?rev=758634&view=rev
Log:
JCR-1588: Access Control

tests: missing session.logout

Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authentication/NullLoginTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authentication/NullLoginTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authentication/NullLoginTest.java?rev=758634&r1=758633&r2=758634&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authentication/NullLoginTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authentication/NullLoginTest.java
Thu Mar 26 13:37:28 2009
@@ -24,20 +24,16 @@
 /** <code>NullLoginTest</code>... */
 public class NullLoginTest extends AbstractJCRTest {
 
-    protected void setUp() throws Exception {
-        super.setUp();
-    }
-
-    protected void tearDown() throws Exception {
-        super.tearDown();
-    }
-
     public void testNullLogin() throws RepositoryException {
         Session s = helper.getRepository().login();
         Session s2 = helper.getRepository().login(null, null);
-
-        assertNotNull(s.getUserID());
-        assertEquals(s.getUserID(), s2.getUserID());
-        assertEquals(s.getWorkspace().getName(), s2.getWorkspace().getName());
+        try {
+            assertNotNull(s.getUserID());
+            assertEquals(s.getUserID(), s2.getUserID());
+            assertEquals(s.getWorkspace().getName(), s2.getWorkspace().getName());
+        } finally {
+            s.logout();
+            s2.logout();
+        }
     }
 }
\ No newline at end of file



Mime
View raw message