From f7507f4aed8e50c07f44f512e287f84f0cd51bb2 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 3 Jan 2013 20:50:41 +0000 Subject: [PATCH] cleanup test git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1428588 13f79535-47bb-0310-9956-ffa450edef68 --- .../redback/rbac/ldap/TestLdapRoleMapper.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/redback-rbac/redback-rbac-providers/redback-rbac-ldap/src/test/java/org/apache/archiva/redback/rbac/ldap/TestLdapRoleMapper.java b/redback-rbac/redback-rbac-providers/redback-rbac-ldap/src/test/java/org/apache/archiva/redback/rbac/ldap/TestLdapRoleMapper.java index fb7cc4230..0694a3332 100644 --- a/redback-rbac/redback-rbac-providers/redback-rbac-ldap/src/test/java/org/apache/archiva/redback/rbac/ldap/TestLdapRoleMapper.java +++ b/redback-rbac/redback-rbac-providers/redback-rbac-ldap/src/test/java/org/apache/archiva/redback/rbac/ldap/TestLdapRoleMapper.java @@ -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 ) -- 2.39.5