directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Bocanegra <tri...@apache.org>
Subject [ApacheDS] Best way of using ApacheDS in unit tests?
Date Fri, 14 Mar 2014 00:44:35 GMT
Hi,

I need to use an LDAP server in one of my unit tests [0]. currently
I'm extending from AbstractServerTest [1] but this looks a bit weird.
Is there a nicer way of doing it? I don't think I can use the
annotation based framework-runner, since I have to extend from my own
base classes.

Thanks.
Regards, Toby

[0] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-auth-ldap/src/test/java/org/apache/jackrabbit/oak/security/authentication/ldap/LdapLoginTestBase.java
[1] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-auth-ldap/src/test/java/org/apache/jackrabbit/oak/security/authentication/ldap/InternalLdapServer.java

Mime
View raw message