JUnit rule to simplify ldap unit tests.
JUnit rule to simplify ldap unit tests.
public class LDAPUnitTest {
@Test
@LDAP(ldif = "/path/to/file.ldif")
public void testLdapMethod(){
LdapContext context = rule.createLdapContext();
}
@Rule
public LDAPRule rule = new LDAPRule();
}
Artifacts are deployed to Maven Central. To use, drop this in your pom.xml:
<dependency>
<groupId>com.github.sdorra</groupId>
<artifactId>ldap-unit</artifactId>
<version>1.0.0</version>
</dependency>