incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1555868 - /sling/trunk/contrib/extensions/sling-pax-util/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java
Date Mon, 06 Jan 2014 15:42:59 GMT
Author: bdelacretaz
Date: Mon Jan  6 15:42:59 2014
New Revision: 1555868

URL: http://svn.apache.org/r1555868
Log:
Cannot logout if session is null...

Modified:
    sling/trunk/contrib/extensions/sling-pax-util/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java

Modified: sling/trunk/contrib/extensions/sling-pax-util/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/sling-pax-util/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java?rev=1555868&r1=1555867&r2=1555868&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/sling-pax-util/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java
(original)
+++ sling/trunk/contrib/extensions/sling-pax-util/src/test/java/org/apache/sling/paxexam/util/SlingRepositoryTest.java
Mon Jan  6 15:42:59 2014
@@ -60,10 +60,7 @@ public class SlingRepositoryTest {
     @Test
     public void testLogin() throws RepositoryException {
         final Session s = repository.loginAdministrative(null);
-        try {
-            assertNotNull(s);
-        } finally {
-            s.logout();
-        }
+        assertNotNull(s);
+        s.logout();
     }
  }
\ No newline at end of file



Mime
View raw message