directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r925870 - in /directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core: changelog/DefaultChangeLogIT.java exception/ExceptionServiceIT.java
Date Sun, 21 Mar 2010 19:32:43 GMT
Author: seelmann
Date: Sun Mar 21 19:32:43 2010
New Revision: 925870

URL: http://svn.apache.org/viewvc?rev=925870&view=rev
Log:
added a cleanup method to run after a method execution

Modified:
    directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/changelog/DefaultChangeLogIT.java
    directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java

Modified: directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/changelog/DefaultChangeLogIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/changelog/DefaultChangeLogIT.java?rev=925870&r1=925869&r2=925870&view=diff
==============================================================================
--- directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/changelog/DefaultChangeLogIT.java
(original)
+++ directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/changelog/DefaultChangeLogIT.java
Sun Mar 21 19:32:43 2010
@@ -37,11 +37,13 @@ import org.apache.directory.server.core.
 import org.apache.directory.server.core.factory.DefaultDirectoryServiceFactory;
 import org.apache.directory.server.core.integ.AbstractLdapTestUnit;
 import org.apache.directory.server.core.integ.FrameworkRunner;
+import org.apache.directory.server.core.integ.IntegrationUtils;
 import org.apache.directory.shared.ldap.constants.SchemaConstants;
 import org.apache.directory.shared.ldap.entry.Entry;
 import org.apache.directory.shared.ldap.entry.EntryAttribute;
 import org.apache.directory.shared.ldap.entry.client.DefaultClientEntry;
 import org.apache.directory.shared.ldap.name.DN;
+import org.junit.After;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.slf4j.Logger;
@@ -65,6 +67,13 @@ public class DefaultChangeLogIT extends 
     public static final Logger LOG = LoggerFactory.getLogger( DefaultChangeLogIT.class );
 
 
+    @After
+    public void closeConnections()
+    {
+        IntegrationUtils.closeConections();
+    }
+
+
     @Test
     public void testManyTagsPersistenceAcrossRestarts() throws Exception, InterruptedException
     {

Modified: directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java?rev=925870&r1=925869&r2=925870&view=diff
==============================================================================
--- directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java
(original)
+++ directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java
Sun Mar 21 19:32:43 2010
@@ -39,6 +39,7 @@ import org.apache.directory.server.const
 import org.apache.directory.server.core.annotations.CreateDS;
 import org.apache.directory.server.core.integ.AbstractLdapTestUnit;
 import org.apache.directory.server.core.integ.FrameworkRunner;
+import org.apache.directory.server.core.integ.IntegrationUtils;
 import org.apache.directory.shared.ldap.constants.SchemaConstants;
 import org.apache.directory.shared.ldap.cursor.Cursor;
 import org.apache.directory.shared.ldap.entry.Entry;
@@ -48,6 +49,7 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.name.DN;
 import org.apache.directory.shared.ldap.name.RDN;
+import org.junit.After;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
@@ -84,7 +86,14 @@ public class ExceptionServiceIT extends 
         return resp;
     }
 
-    
+
+    @After
+    public void closeConnections()
+    {
+        IntegrationUtils.closeConections();
+    }
+
+
     // ------------------------------------------------------------------------
     // Search Operation Tests
     // ------------------------------------------------------------------------



Mime
View raw message