directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1072414 - in /directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations: add/ bind/ compare/ delete/ modify/ modifydn/ search/
Date Sat, 19 Feb 2011 19:00:04 GMT
Author: elecharny
Date: Sat Feb 19 19:00:03 2011
New Revision: 1072414

URL: http://svn.apache.org/viewvc?rev=1072414&view=rev
Log:
Closing the connections when done with them

Modified:
    directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java
    directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/bind/DelegatedAuthIT.java
    directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
    directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/compare/CompareIT.java
    directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/delete/DeleteIT.java
    directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/modify/IllegalModificationIT.java
    directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/modifydn/MoveIT.java
    directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchIT.java
    directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchPerfIT.java

Modified: directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java?rev=1072414&r1=1072413&r2=1072414&view=diff
==============================================================================
--- directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java
(original)
+++ directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java
Sat Feb 19 19:00:03 2011
@@ -107,6 +107,7 @@ public class AddingEntriesWithSpecialCha
         assertTrue( "entry found", entryFound );
 
         connection.delete( dn );
+        connection.close();
     }
 
 
@@ -143,6 +144,7 @@ public class AddingEntriesWithSpecialCha
         assertTrue( "entry found", entryFound );
 
         connection.delete( dn );
+        connection.close();
     }
 
 
@@ -175,6 +177,7 @@ public class AddingEntriesWithSpecialCha
         assertTrue( "entry found", entryFound );
 
         connection.delete( dn );
+        connection.close();
     }
 
 
@@ -207,6 +210,7 @@ public class AddingEntriesWithSpecialCha
 
         assertTrue( "no entry found", entryFound );
         connection.delete( dn );
+        connection.close();
     }
 
 
@@ -243,6 +247,7 @@ public class AddingEntriesWithSpecialCha
         assertTrue( "entry found", entryFound );
 
         connection.delete( dn );
+        connection.close();
     }
 
 
@@ -279,6 +284,7 @@ public class AddingEntriesWithSpecialCha
         assertTrue( "entry found", entryFound );
 
         connection.delete( dn );
+        connection.close();
     }
 
 
@@ -315,6 +321,7 @@ public class AddingEntriesWithSpecialCha
         assertTrue( "entry found", entryFound );
 
         connection.delete( dn );
+        connection.close();
     }
 
 
@@ -351,5 +358,6 @@ public class AddingEntriesWithSpecialCha
         assertTrue( "entry found", entryFound );
 
         connection.delete( dn );
+        connection.close();
     }
 }
\ No newline at end of file

Modified: directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/bind/DelegatedAuthIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/bind/DelegatedAuthIT.java?rev=1072414&r1=1072413&r2=1072414&view=diff
==============================================================================
--- directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/bind/DelegatedAuthIT.java
(original)
+++ directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/bind/DelegatedAuthIT.java
Sat Feb 19 19:00:03 2011
@@ -130,6 +130,8 @@ public class DelegatedAuthIT extends Abs
         {
             assertTrue( true );
         }
+        
+        ldapConnection.close();
     }
     
     
@@ -235,5 +237,7 @@ public class DelegatedAuthIT extends Abs
         {
             assertTrue( true );
         }
+
+        ldapConnection.close();
     }
 }

Modified: directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java?rev=1072414&r1=1072413&r2=1072414&view=diff
==============================================================================
--- directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
(original)
+++ directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
Sat Feb 19 19:00:03 2011
@@ -453,5 +453,6 @@ public class SimpleBindIT extends Abstra
         assertEquals( ResultCodeEnum.SUCCESS, ldapResult.getResultCode() );
         assertEquals( 1, response.getMessageId() );
         assertTrue( connection.isAuthenticated() );
+        connection.close();
     }
 }

Modified: directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/compare/CompareIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/compare/CompareIT.java?rev=1072414&r1=1072413&r2=1072414&view=diff
==============================================================================
--- directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/compare/CompareIT.java
(original)
+++ directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/compare/CompareIT.java
Sat Feb 19 19:00:03 2011
@@ -105,6 +105,7 @@ public class CompareIT extends AbstractL
         assertEquals( ResultCodeEnum.COMPARE_FALSE, resp.getLdapResult().getResultCode()
);
 
         conn.unBind();
+        conn.close();
     }
 
 

Modified: directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/delete/DeleteIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/delete/DeleteIT.java?rev=1072414&r1=1072413&r2=1072414&view=diff
==============================================================================
--- directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/delete/DeleteIT.java
(original)
+++ directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/delete/DeleteIT.java
Sat Feb 19 19:00:03 2011
@@ -99,6 +99,7 @@ public class DeleteIT extends AbstractLd
         assertEquals( ResultCodeEnum.NOT_ALLOWED_ON_NON_LEAF, resp.getLdapResult().getResultCode()
);
 
         conn.unBind();
+        conn.close();
     }
 
 
@@ -119,6 +120,7 @@ public class DeleteIT extends AbstractLd
         assertEquals( ResultCodeEnum.NO_SUCH_OBJECT, resp.getLdapResult().getResultCode()
);
 
         conn.unBind();
+        conn.close();
     }
 
 
@@ -136,6 +138,7 @@ public class DeleteIT extends AbstractLd
         assertEquals( ResultCodeEnum.NO_SUCH_OBJECT, resp.getLdapResult().getResultCode()
);
 
         conn.unBind();
+        conn.close();
     }
 
 
@@ -282,5 +285,7 @@ public class DeleteIT extends AbstractLd
         {
             // expected
         }
+        
+        conn.close();
     }
 }

Modified: directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/modify/IllegalModificationIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/modify/IllegalModificationIT.java?rev=1072414&r1=1072413&r2=1072414&view=diff
==============================================================================
--- directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/modify/IllegalModificationIT.java
(original)
+++ directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/modify/IllegalModificationIT.java
Sat Feb 19 19:00:03 2011
@@ -94,6 +94,7 @@ public class IllegalModificationIT exten
         // Check whether entry is unmodified, i.e. no description
         Entry entry = con.lookup( DN );
         assertEquals( "description exists?", null, entry.get( "description" ) );
+        con.close();
     }
 
 

Modified: directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/modifydn/MoveIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/modifydn/MoveIT.java?rev=1072414&r1=1072413&r2=1072414&view=diff
==============================================================================
--- directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/modifydn/MoveIT.java
(original)
+++ directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/modifydn/MoveIT.java
Sat Feb 19 19:00:03 2011
@@ -124,17 +124,18 @@ public class MoveIT extends AbstractLdap
         //now do something bad: make the parent a child of its own child 
         ModifyDnResponse resp = con.move( "ou=parent,ou=system", "ou=child,ou=parent,ou=system"
);
         assertEquals( ResultCodeEnum.UNWILLING_TO_PERFORM, resp.getLdapResult().getResultCode()
);
+        con.close();
     }
 
 
     @Test
     public void testIllegalMoveToSameDN() throws Exception
     {
-
         LdapConnection con = getClientApiConnection( getLdapServer() );
 
         //now do something bad: try to move the entry to the same Dn
         ModifyDnResponse resp = con.move( "ou=parent,ou=system", "ou=parent,ou=system" );
         assertEquals( ResultCodeEnum.UNWILLING_TO_PERFORM, resp.getLdapResult().getResultCode()
);
+        con.close();
     }
 }

Modified: directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchIT.java?rev=1072414&r1=1072413&r2=1072414&view=diff
==============================================================================
--- directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchIT.java
(original)
+++ directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchIT.java
Sat Feb 19 19:00:03 2011
@@ -1643,6 +1643,7 @@ public class SearchIT extends AbstractLd
         finally
         {
             asyncCnx.unBind();
+            asyncCnx.close();
         }
     }
 
@@ -1685,6 +1686,7 @@ public class SearchIT extends AbstractLd
         }
 
         assertEquals( sizeLimit, i );
+        connection.close();
     }
 
 
@@ -1718,6 +1720,7 @@ public class SearchIT extends AbstractLd
         }
 
         assertTrue( newCount < count );
+        connection.close();
     }
 
 

Modified: directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchPerfIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchPerfIT.java?rev=1072414&r1=1072413&r2=1072414&view=diff
==============================================================================
--- directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchPerfIT.java
(original)
+++ directory/apacheds/branches/m1/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchPerfIT.java
Sat Feb 19 19:00:03 2011
@@ -58,7 +58,6 @@ public class SearchPerfIT extends Abstra
         //getLdapServer().getDirectoryService().getInterceptorChain().addFirst( new TimerInterceptor(
"Start" ) );
         //getLdapServer().getDirectoryService().getInterceptorChain().addLast( new TimerInterceptor(
"End" ) );
         LdapConnection connection = new LdapNetworkConnection( "localhost", getLdapServer().getPort()
);
-        connection.setTimeOut( 0 );
 
         try
         {
@@ -121,6 +120,7 @@ public class SearchPerfIT extends Abstra
         finally
         {
             connection.unBind();
+            connection.close();
         }
     }
 }



Mime
View raw message