directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1039758 - in /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search: IndexedNegationSearchIT.java NegationSearchIT.java
Date Sat, 27 Nov 2010 20:47:55 GMT
Author: seelmann
Date: Sat Nov 27 20:47:55 2010
New Revision: 1039758

URL: http://svn.apache.org/viewvc?rev=1039758&view=rev
Log:
Close resources

Modified:
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/IndexedNegationSearchIT.java
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/NegationSearchIT.java

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/IndexedNegationSearchIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/IndexedNegationSearchIT.java?rev=1039758&r1=1039757&r2=1039758&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/IndexedNegationSearchIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/IndexedNegationSearchIT.java
Sat Nov 27 20:47:55 2010
@@ -33,6 +33,7 @@ import javax.naming.directory.DirContext
 import javax.naming.directory.SearchControls;
 import javax.naming.directory.SearchResult;
 
+import org.apache.directory.junit.tools.MultiThreadedMultiInvoker;
 import org.apache.directory.server.annotations.CreateLdapServer;
 import org.apache.directory.server.annotations.CreateTransport;
 import org.apache.directory.server.annotations.SaslMechanism;
@@ -47,6 +48,7 @@ import org.apache.directory.server.ldap.
 import org.apache.directory.server.ldap.handlers.extended.StartTlsHandler;
 import org.apache.directory.server.ldap.handlers.extended.StoredProcedureExtendedOperationHandler;
 import org.apache.directory.shared.ldap.constants.SupportedSaslMechanisms;
+import org.junit.Rule;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
@@ -150,6 +152,8 @@ import org.junit.runner.RunWith;
     })
 public class IndexedNegationSearchIT extends AbstractLdapTestUnit
 {
+    @Rule
+    public MultiThreadedMultiInvoker i = new MultiThreadedMultiInvoker( MultiThreadedMultiInvoker.THREADSAFE
);
 
     /**
      * Tests to make sure a negated search for OU of "test1" returns
@@ -230,6 +234,9 @@ public class IndexedNegationSearchIT ext
             results.add( namingEnumeration.next() );
         }
         
+        namingEnumeration.close();
+        ctx.close();
+        
         return results;
     }
 
@@ -246,6 +253,9 @@ public class IndexedNegationSearchIT ext
             results.add( namingEnumeration.next() );
         }
         
+        namingEnumeration.close();
+        ctx.close();
+        
         return results;
     }
 }

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/NegationSearchIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/NegationSearchIT.java?rev=1039758&r1=1039757&r2=1039758&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/NegationSearchIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/NegationSearchIT.java
Sat Nov 27 20:47:55 2010
@@ -33,11 +33,13 @@ import javax.naming.directory.DirContext
 import javax.naming.directory.SearchControls;
 import javax.naming.directory.SearchResult;
 
+import org.apache.directory.junit.tools.MultiThreadedMultiInvoker;
 import org.apache.directory.server.annotations.CreateLdapServer;
 import org.apache.directory.server.annotations.CreateTransport;
 import org.apache.directory.server.core.annotations.ApplyLdifs;
 import org.apache.directory.server.core.integ.AbstractLdapTestUnit;
 import org.apache.directory.server.core.integ.FrameworkRunner;
+import org.junit.Rule;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
@@ -107,7 +109,9 @@ import org.junit.runner.RunWith;
 )
 public class NegationSearchIT extends AbstractLdapTestUnit 
 {
-    
+    @Rule
+    public MultiThreadedMultiInvoker i = new MultiThreadedMultiInvoker( MultiThreadedMultiInvoker.THREADSAFE
);
+
     /**
      * Tests to make sure a negated search for actors without ou
      * with value 'drama' returns those that do not have the attribute
@@ -170,6 +174,9 @@ public class NegationSearchIT extends Ab
             results.add( namingEnumeration.next() );
         }
         
+        namingEnumeration.close();
+        ctx.close();
+        
         return results;
     }
 }



Mime
View raw message