How can I setup an embedded ApacheDS in Junit5
Asked Answered
W

1

7

In the ApacheDS documentation about embedding an ApacheDS server in Junit test they only mentions example for Junit4 using

@RunWith(FrameworkRunner.class)

or

@ClassRule
public static CreateLdapServerRule serverRule = new CreateLdapServerRule();

But RunWith and ClassRule are not available in Junit5.

How can I run Junit5 tests with an embedded ApacheDS LdapServer ?

Wiggins answered 20/11, 2020 at 16:48 Comment(0)
O
1

Using apacheds-test-framework >= 2.0.0.AM27 you can use

@ExtendWith(ApacheDSTestExtension.class)
Oliver answered 1/2 at 15:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.