Class TestDefinition
java.lang.Object
org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.TestDefinition
- Direct Known Subclasses:
SingleTestClass,TestClasses
Represents the configuration details of a test that needs to be launched by the
JUnitLauncherTask-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected ForkDefinitionprotected Booleanprotected Stringprotected Stringprotected List<ListenerDefinition>protected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfiguredListener(ListenerDefinition listener) String[]String[]booleanvoidsetExcludeEngines(String excludeEngines) voidsetFailureProperty(String failureProperty) voidsetHaltOnFailure(boolean haltonfailure) voidvoidsetIncludeEngines(String includeEngines) voidsetOutputDir(String dir) voidprotected booleanprotected abstract voidtoForkedRepresentation(JUnitLauncherTask task, XMLStreamWriter writer)
-
Field Details
-
ifProperty
-
unlessProperty
-
haltOnFailure
-
failureProperty
-
outputDir
-
includeEngines
-
excludeEngines
-
forkDefinition
-
listeners
-
-
Constructor Details
-
TestDefinition
public TestDefinition()
-
-
Method Details
-
setIf
-
setUnless
-
isHaltOnFailure
public boolean isHaltOnFailure() -
setHaltOnFailure
public void setHaltOnFailure(boolean haltonfailure) -
getFailureProperty
-
setFailureProperty
-
addConfiguredListener
-
getListeners
-
setOutputDir
-
getOutputDir
-
createFork
-
shouldRun
-
getIncludeEngines
-
setIncludeEngines
-
getExcludeEngines
-
setExcludeEngines
-
toForkedRepresentation
protected abstract void toForkedRepresentation(JUnitLauncherTask task, XMLStreamWriter writer) throws XMLStreamException - Throws:
XMLStreamException
-