]> source.dussan.org Git - archiva.git/commitdiff
cleanup test
authorOlivier Lamy <olamy@apache.org>
Thu, 3 Jan 2013 20:50:41 +0000 (20:50 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 3 Jan 2013 20:50:41 +0000 (20:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1428588 13f79535-47bb-0310-9956-ffa450edef68

redback-rbac/redback-rbac-providers/redback-rbac-ldap/src/test/java/org/apache/archiva/redback/rbac/ldap/TestLdapRoleMapper.java

index fb7cc4230ec779ec3fb4ddfb4b8bfdeda0181010..0694a33323cf03041e823edfadd59caa816c14e1 100644 (file)
@@ -132,8 +132,6 @@ public class TestLdapRoleMapper
 
         apacheDs.getAdminContext().createSubcontext( suffix, attributes );
 
-        clearManyUsers();
-
         makeUsers();
 
         createGroups();
@@ -235,25 +233,6 @@ public class TestLdapRoleMapper
         assertExist( context, createDn( uid ), "cn", uid );
     }
 
-    private void clearManyUsers()
-        throws Exception
-    {
-        InitialDirContext context = apacheDs.getAdminContext();
-
-        for ( int i = 0; i < 10000; i++ )
-        {
-            String cn = "user" + i;
-            try
-            {
-                context.unbind( createDn( cn ) );
-            }
-            catch ( NamingException e )
-            {
-                // OK lets try with next one
-            }
-        }
-
-    }
 
 
     private void assertExist( DirContext context, String dn, String attribute, String value )