public class DSAnnotationProcessor extends Object
| Constructor and Description |
|---|
DSAnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyLdifs(org.junit.runner.Description desc,
DirectoryService service)
Apply the LDIF entries to the given service
|
static DirectoryService |
getDirectoryService()
Create a DirectoryService from an annotation.
|
static DirectoryService |
getDirectoryService(org.junit.runner.Description description)
Create a DirectoryService from a Unit test annotation
|
static void |
injectEntries(DirectoryService service,
String ldif)
Inject an ldif String into the server.
|
static void |
injectLdifFiles(Class<?> clazz,
DirectoryService service,
String[] ldifFiles)
injects the LDIF entries present in a LDIF file
|
public static DirectoryService getDirectoryService(org.junit.runner.Description description) throws Exception
description - The annotations containing the info from which we will create the DSExceptionpublic static DirectoryService getDirectoryService() throws Exception
Exceptionpublic static void injectLdifFiles(Class<?> clazz, DirectoryService service, String[] ldifFiles) throws Exception
service - the DirectoryServiceldifFiles - the array of LDIF file names (only )Exceptionpublic static void injectEntries(DirectoryService service, String ldif) throws Exception
service - the directory service to useldif - the ldif containing entries to add to the server.NamingException - if there is a problem adding the entries from the LDIFExceptionpublic static void applyLdifs(org.junit.runner.Description desc,
DirectoryService service)
throws Exception
ExceptionCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.