|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.integ.InheritableServerSettings
public class InheritableServerSettings
Inheritable settings of a test suite, test class, or test method.
Field Summary | |
---|---|
static LdapServerFactory |
DEFAULT_FACTORY
the default factory to use if inheritance leads to a null value |
static SetupMode |
DEFAULT_MODE
the default setup mode to use if inheritance leads to null value |
Constructor Summary | |
---|---|
InheritableServerSettings(org.junit.runner.Description description)
Creates a new InheritableServerSettings instance for test suites description. |
|
InheritableServerSettings(org.junit.runner.Description description,
InheritableServerSettings parent)
Creates a new InheritableServerSettings instance based on a test object's description and it's parent's settings. |
Method Summary | |
---|---|
Level |
getCleanupLevel()
|
org.junit.runner.Description |
getDescription()
|
LdapServerFactory |
getFactory()
|
java.util.List<java.lang.String> |
getLdifFiles(java.util.List<java.lang.String> ldifFiles)
Get a list of files containing entries described using the LDIF format. |
java.util.List<java.lang.String> |
getLdifs(java.util.List<java.lang.String> ldifs)
Get a list of entries from a LDIF declared as an annotation |
SetupMode |
getMode()
|
InheritableServerSettings |
getParent()
|
boolean |
isClassLevel()
|
boolean |
isMethodLevel()
|
boolean |
isSuiteLevel()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SetupMode DEFAULT_MODE
public static final LdapServerFactory DEFAULT_FACTORY
Constructor Detail |
---|
public InheritableServerSettings(org.junit.runner.Description description)
description
- JUnit description for the suitepublic InheritableServerSettings(org.junit.runner.Description description, InheritableServerSettings parent)
description
- JUnit description for the test objectparent
- the parent settings or null if the test entity is a suiteMethod Detail |
---|
public org.junit.runner.Description getDescription()
public InheritableServerSettings getParent()
public boolean isSuiteLevel()
true
if we are at the suite levelpublic boolean isClassLevel()
true
if we are at the class levelpublic boolean isMethodLevel()
true
if we are at the method levelpublic SetupMode getMode()
public LdapServerFactory getFactory() throws java.lang.IllegalAccessException, java.lang.InstantiationException
java.lang.IllegalAccessException
- if we can't access the factory
java.lang.InstantiationException
- if the DirectoryService can't be instanciatedpublic java.util.List<java.lang.String> getLdifs(java.util.List<java.lang.String> ldifs)
ldifs
- the list of LDIFs we want to feed
public java.util.List<java.lang.String> getLdifFiles(java.util.List<java.lang.String> ldifFiles)
ldifFiles
- the list to feed
public Level getCleanupLevel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |