- afterTestExecution(ExtensionContext) - Method in class com.buralotech.oss.ldapunit.DirectoryServerExtension
-
This callback is invoked after the test method is executed and is responsible for stopping the embedded
directory server.
- annotation - Variable in class com.buralotech.oss.ldapunit.DirectoryServerRule
-
The current configuration for the in-memory LDAP directory server.
- annotation - Variable in class com.buralotech.oss.ldapunit.DirectoryServerStatement
-
The annotation that defines the directory server configuration.
- apply(Statement, Description) - Method in class com.buralotech.oss.ldapunit.DirectoryServerRule
-
Modifies the method-running Statement to implement this test-running rule.
- arrayContains(String[], String) - Method in class com.buralotech.oss.ldapunit.DirectoryTester
-
Check if item is present in items ignoring case.
- arrayToString(String[]) - Method in class com.buralotech.oss.ldapunit.DirectoryTester
-
Convert an array of strings to string.
- assertDNExists(String) - Method in class com.buralotech.oss.ldapunit.DirectoryServerRule
-
Assert that an entry identified by dn exists.
- assertDNExists(String) - Method in class com.buralotech.oss.ldapunit.DirectoryTester
-
Assert that an entry identified by dn exists.
- assertDNHasAttribute(String, String) - Method in class com.buralotech.oss.ldapunit.DirectoryServerRule
-
Assert that the entry identified by dn has an attribute named attributeName.
- assertDNHasAttribute(String, String) - Method in class com.buralotech.oss.ldapunit.DirectoryTester
-
Assert that the entry identified by dn has an attribute named attributeName.
- assertDNHasAttributeValue(String, String, String...) - Method in class com.buralotech.oss.ldapunit.DirectoryServerRule
-
Assert that the entry identified by dn has an attribute named attributeName with
the attribute value(s) attributeName.
- assertDNHasAttributeValue(String, String, String...) - Method in class com.buralotech.oss.ldapunit.DirectoryTester
-
Assert that the entry identified by dn has an attribute named attributeName with
the attribute value(s) attributeName.
- assertDNIsA(String, String) - Method in class com.buralotech.oss.ldapunit.DirectoryServerRule
-
Assert that the entry identified by dn is of type objectclass.
- assertDNIsA(String, String) - Method in class com.buralotech.oss.ldapunit.DirectoryTester
-
Assert that the entry identified by dn is of type objectclass.
- DEFAULT_PORT - Static variable in annotation type com.buralotech.oss.ldapunit.DirectoryServerConfiguration
-
The default TCP port for the directory server.
- DEFAULT_RETRIES - Static variable in class com.buralotech.oss.ldapunit.DirectoryTester
-
The default for the maximum connection attempts.
- DEFAULT_TIMEOUT - Static variable in class com.buralotech.oss.ldapunit.DirectoryTester
-
The default for the connection timeout.
- DirectoryServerConfiguration - Annotation Type in com.buralotech.oss.ldapunit
-
This annotation is used to specify the parameters used to configure the LDAP directory server.
- DirectoryServerExtension - Class in com.buralotech.oss.ldapunit
-
JUnit 5 (Jupiter) extension that will start an embedded directory server before the test method execution and
stop the embedded directory server when the test method completes.
- DirectoryServerExtension() - Constructor for class com.buralotech.oss.ldapunit.DirectoryServerExtension
-
- DirectoryServerRule - Class in com.buralotech.oss.ldapunit
-
A JUnit test rule that starts an embedded LDAP directory server.
- DirectoryServerRule() - Constructor for class com.buralotech.oss.ldapunit.DirectoryServerRule
-
- DirectoryServerStatement - Class in com.buralotech.oss.ldapunit
-
A Statement wrapper that launches an embedded LDAP directory server before executing the wrapped statement.
- DirectoryServerStatement(Statement, DirectoryServerConfiguration) - Constructor for class com.buralotech.oss.ldapunit.DirectoryServerStatement
-
Initialise the wrapper statement that starts an embedded LDAP directory server and shuts it down before and after
executing the wrapped statement.
- DirectoryServerUtils - Class in com.buralotech.oss.ldapunit
-
Helper functions to start the in-memory LDAP directory server, load LDAP directory entries from an LDIF files and
shut down the in-memory LDAP directory server.
- DirectoryServerUtils() - Constructor for class com.buralotech.oss.ldapunit.DirectoryServerUtils
-
Hidden constructor.
- DirectoryTester - Class in com.buralotech.oss.ldapunit
-
Utility that maintains a connection to the LDAP directory server and provides assert and verify methods to
test the LDAP directory contents.
- DirectoryTester(LDAPConnection) - Constructor for class com.buralotech.oss.ldapunit.DirectoryTester
-
Initialise the LDAP directory tester using an existing LDAP connection.
- DirectoryTester() - Constructor for class com.buralotech.oss.ldapunit.DirectoryTester
-
- DirectoryTester(String, int) - Constructor for class com.buralotech.oss.ldapunit.DirectoryTester
-
Initialise the LDAP directory tester by connecting to the LDAP directory server using the hostname and
port.
- DirectoryTester(String, int, int, int) - Constructor for class com.buralotech.oss.ldapunit.DirectoryTester
-
Initialise the LDAP directory tester by connecting to the LDAP directory server using the hostname and
port.The connection attempt is retried a maximum of retries times with a timeout of
timeout for each attempt.
- DirectoryTester(String, int, String, String) - Constructor for class com.buralotech.oss.ldapunit.DirectoryTester
-
Initialise the LDAP directory tester by connecting to the LDAP directory server using the hostname and
port and bind to it using the bindDN and password.
- DirectoryTester(String, int, String, String, int, int) - Constructor for class com.buralotech.oss.ldapunit.DirectoryTester
-
Initialise the LDAP directory tester by connecting to the LDAP directory server using the hostname and
port and bind to it using the bindDN and password.
- DirectoryTesterException - Exception in com.buralotech.oss.ldapunit
-
Runtime exception raised by
DirectoryTester when there is a problem communicating with the LDAP directory
server.
- DirectoryTesterException() - Constructor for exception com.buralotech.oss.ldapunit.DirectoryTesterException
-
The default constructor.
- DirectoryTesterException(String) - Constructor for exception com.buralotech.oss.ldapunit.DirectoryTesterException
-
- DirectoryTesterException(Throwable) - Constructor for exception com.buralotech.oss.ldapunit.DirectoryTesterException
-
- DirectoryTesterException(String, Throwable) - Constructor for exception com.buralotech.oss.ldapunit.DirectoryTesterException
-
- disconnect() - Method in class com.buralotech.oss.ldapunit.DirectoryTester
-
Disconnect from the LDAP directory server.