I'm hoping there is an easy answer to this...

When I specify @ApplyLdifs on the test class it *always* tells me that the dn 
exists already, even if it is the first time I've run it.

@ApplyLdifs({
"dn: cn=jon4,ou=system\n" +
"objectClass: person\n" +
"cn: jon4\n" +
"sn: Carlson\n"
})
@RunWith(FrameworkRunner.class)
@CreateLdapServer(
allowAnonymousAccess = true,
transports = { @CreateTransport(protocol = "LDAP") })

org.apache.directory.shared.ldap.exception.LdapEntryAlreadyExistsException: 
ERR_250 cn=jon4,ou=system already exists!

Yet, when I move the @ApplyLdifs to a method, the method doesn't get run by 
jUnit.

I'm using the Apache DS version 1.5.7 libraries...

Thanks!

jon carlson   |  codefortytwo software
1 Main St SE, #400     |   Minneapolis, MN 55414
Office: 612.333.4242  |   web: www.code42.com<http://www.code42.com/>

Reply via email to