public final class ServerAnnotationProcessor extends Object
Modifier and Type | Method and Description |
---|---|
static ReplicationConsumer |
createConsumer()
creates an LdapServer and starts before returning the instance, infering
the configuration from the Stack trace
|
static LdapServer |
createLdapServer(org.junit.runner.Description description,
DirectoryService directoryService)
Create a new instance of LdapServer
|
static KdcServer |
getKdcServer(org.junit.runner.Description description,
DirectoryService directoryService,
int startPort) |
static KdcServer |
getKdcServer(DirectoryService directoryService,
int startPort) |
static LdapServer |
getLdapServer(DirectoryService directoryService)
Returns an LdapServer instance and starts it before returning the instance, infering
the configuration from the Stack trace
|
static LdapServer |
instantiateLdapServer(CreateLdapServer createLdapServer,
DirectoryService directoryService)
Just gives an instance of
LdapServer without starting it. |
public static LdapServer instantiateLdapServer(CreateLdapServer createLdapServer, DirectoryService directoryService)
LdapServer
without starting it.
For getting a running LdapServer instance see createLdapServer(CreateLdapServer, DirectoryService)
public static LdapServer getLdapServer(DirectoryService directoryService) throws ClassNotFoundException
ClassNotFoundException
public static ReplicationConsumer createConsumer() throws ClassNotFoundException
ClassNotFoundException
public static LdapServer createLdapServer(org.junit.runner.Description description, DirectoryService directoryService) throws Exception
description
- A description for the created LdapServerdirectoryService
- The associated DirectoryServicestartPort
- The port used by the serverException
- If the server cannot be startedpublic static KdcServer getKdcServer(DirectoryService directoryService, int startPort) throws Exception
Exception
public static KdcServer getKdcServer(org.junit.runner.Description description, DirectoryService directoryService, int startPort) throws Exception
Exception
Copyright © 2019. All rights reserved.