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 DSException
public static DirectoryService getDirectoryService() throws Exception
Exception
public static void injectLdifFiles(Class<?> clazz, DirectoryService service, String[] ldifFiles) throws Exception
service
- the DirectoryServiceldifFiles
- the array of LDIF file names (only )Exception
public 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 LDIFException
public static void applyLdifs(org.junit.runner.Description desc, DirectoryService service) throws Exception
Exception
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.