|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.integ.InheritableSettings
public class InheritableSettings
Inheritable settings of a test suite, test class, or test method.
Field Summary | |
---|---|
static DirectoryServiceFactory |
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 | |
---|---|
InheritableSettings(org.junit.runner.Description description)
Creates a new InheritableSettings instance for test suites description. |
|
InheritableSettings(org.junit.runner.Description description,
InheritableSettings parent)
Creates a new InheritableSettings instance based on a test object's description and it's parent's settings. |
Method Summary | |
---|---|
Level |
getCleanupLevel()
|
org.junit.runner.Description |
getDescription()
|
DirectoryServiceFactory |
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()
|
InheritableSettings |
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 DirectoryServiceFactory DEFAULT_FACTORY
Constructor Detail |
---|
public InheritableSettings(org.junit.runner.Description description)
description
- JUnit description for the suitepublic InheritableSettings(org.junit.runner.Description description, InheritableSettings 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 InheritableSettings 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 DirectoryServiceFactory 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 |