jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r164806 - in /incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api: AbstractPropertyTest.java ExportDocViewTest.java ExportSysViewTest.java SessionReadMethodsTest.java
Date Tue, 26 Apr 2005 16:01:33 GMT
Author: mreutegg
Date: Tue Apr 26 09:01:32 2005
New Revision: 164806

URL: http://svn.apache.org/viewcvs?rev=164806&view=rev
Log:
Fix missing calls to Session.logout() in tearDown() methods.

Modified:
    incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/AbstractPropertyTest.java
    incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/ExportDocViewTest.java
    incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/ExportSysViewTest.java
    incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/SessionReadMethodsTest.java

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/AbstractPropertyTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/AbstractPropertyTest.java?rev=164806&r1=164805&r2=164806&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/AbstractPropertyTest.java
(original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/AbstractPropertyTest.java
Tue Apr 26 09:01:32 2005
@@ -70,5 +70,13 @@
         }
     }
 
-
+    /**
+     * Releases the session aquired in {@link #setUp()}.
+     */
+    protected void tearDown() throws Exception {
+        if (session != null) {
+            session.logout();
+        }
+        super.tearDown();
+    }
 }

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/ExportDocViewTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/ExportDocViewTest.java?rev=164806&r1=164805&r2=164806&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/ExportDocViewTest.java
(original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/ExportDocViewTest.java
Tue Apr 26 09:01:32 2005
@@ -132,6 +132,9 @@
 
     protected void tearDown() throws Exception {
         file.delete();
+        if (session != null) {
+            session.logout();
+        }
         super.tearDown();
     }
 

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/ExportSysViewTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/ExportSysViewTest.java?rev=164806&r1=164805&r2=164806&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/ExportSysViewTest.java
(original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/ExportSysViewTest.java
Tue Apr 26 09:01:32 2005
@@ -71,6 +71,9 @@
 
     protected void tearDown() throws Exception {
         file.delete();
+        if (session != null) {
+            session.logout();
+        }
         super.tearDown();
     }
 

Modified: incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/SessionReadMethodsTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/SessionReadMethodsTest.java?rev=164806&r1=164805&r2=164806&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/SessionReadMethodsTest.java
(original)
+++ incubator/jackrabbit/trunk/src/test/org/apache/jackrabbit/test/api/SessionReadMethodsTest.java
Tue Apr 26 09:01:32 2005
@@ -54,6 +54,16 @@
     }
 
     /**
+     * Releases the session aquired in {@link #setUp()}.
+     */
+    protected void tearDown() throws Exception {
+        if (session != null) {
+            session.logout();
+        }
+        super.tearDown();
+    }
+
+    /**
      * Tests that session.getItem() throws a PathNotFoundException with a given
      * path to nowhere.
      */



Mime
View raw message