directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1311814 - in /directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/server/operations/add: AddAliasIT.java AddingEntriesWithSpecialCharactersInRDNIT.java
Date Tue, 10 Apr 2012 16:10:48 GMT
Author: elecharny
Date: Tue Apr 10 16:10:47 2012
New Revision: 1311814

URL: http://svn.apache.org/viewvc?rev=1311814&view=rev
Log:
Closed some cursors

Modified:
    directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/server/operations/add/AddAliasIT.java
    directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java

Modified: directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/server/operations/add/AddAliasIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/server/operations/add/AddAliasIT.java?rev=1311814&r1=1311813&r2=1311814&view=diff
==============================================================================
--- directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/server/operations/add/AddAliasIT.java
(original)
+++ directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/server/operations/add/AddAliasIT.java
Tue Apr 10 16:10:47 2012
@@ -134,7 +134,6 @@ public class AddAliasIT extends Abstract
             }
             catch ( Exception e )
             {
-                e.printStackTrace();
                 assertTrue( true );
             }
 
@@ -224,8 +223,10 @@ public class AddAliasIT extends Abstract
 
             while ( cursor.next() )
             {
-                System.out.println( cursor.get().getDn() );
+                //System.out.println( cursor.get().getDn() );
             }
+            
+            cursor.close();
         }
         finally
         {

Modified: directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java?rev=1311814&r1=1311813&r2=1311814&view=diff
==============================================================================
--- directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java
(original)
+++ directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/server/operations/add/AddingEntriesWithSpecialCharactersInRDNIT.java
Tue Apr 10 16:10:47 2012
@@ -106,6 +106,8 @@ public class AddingEntriesWithSpecialCha
             assertTrue( cn.contains( "Kate#Bush" ) );
         }
 
+        cursor.close();
+
         assertTrue( "entry found", entryFound );
 
         connection.delete( dn );
@@ -144,6 +146,8 @@ public class AddingEntriesWithSpecialCha
             assertTrue( cn.contains( "Bush, Kate" ) );
         }
 
+        cursor.close();
+
         assertTrue( "entry found", entryFound );
 
         connection.delete( dn );
@@ -178,6 +182,8 @@ public class AddingEntriesWithSpecialCha
             assertTrue( cn.contains( "Mackie \"The Knife\" Messer" ) );
         }
 
+        cursor.close();
+
         assertTrue( "entry found", entryFound );
 
         connection.delete( dn );
@@ -211,6 +217,8 @@ public class AddingEntriesWithSpecialCha
             assertNotNull( ou );
             assertTrue( ou.contains( "AC\\DC" ) );
         }
+        
+        cursor.close();
 
         assertTrue( "no entry found", entryFound );
         connection.delete( dn );
@@ -249,6 +257,8 @@ public class AddingEntriesWithSpecialCha
             assertTrue( ou.contains( "East -> West" ) );
         }
 
+        cursor.close();
+
         assertTrue( "entry found", entryFound );
 
         connection.delete( dn );
@@ -287,6 +297,8 @@ public class AddingEntriesWithSpecialCha
             assertTrue( ou.contains( "Scissors 8<" ) );
         }
 
+        cursor.close();
+
         assertTrue( "entry found", entryFound );
 
         connection.delete( dn );
@@ -325,6 +337,8 @@ public class AddingEntriesWithSpecialCha
             assertTrue( ou.contains( "semicolon group;" ) );
         }
 
+        cursor.close();
+
         assertTrue( "entry found", entryFound );
 
         connection.delete( dn );
@@ -362,6 +376,8 @@ public class AddingEntriesWithSpecialCha
             assertTrue( ou.contains( "nomen=omen" ) );
         }
 
+        cursor.close();
+
         assertTrue( "entry found", entryFound );
 
         connection.delete( dn );



Mime
View raw message