directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <kayyag...@apache.org>
Subject Re: [ApacheDS] Best way of using ApacheDS in unit tests?
Date Fri, 14 Mar 2014 03:24:42 GMT
On Fri, Mar 14, 2014 at 6:14 AM, Tobias Bocanegra <tripod@apache.org> wrote:

> 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
>
no, no other way, test class should use the @FrameworkRunner and extend
from AbstractServerTest

> 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
>



-- 
Kiran Ayyagari
http://keydap.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message