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
Modifier and TypeFieldDescriptionprotected String
protected String
protected ForkDefinition
protected Boolean
protected String
protected String
protected List<ListenerDefinition>
protected String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfiguredListener
(ListenerDefinition listener) String[]
String[]
boolean
void
setExcludeEngines
(String excludeEngines) void
setFailureProperty
(String failureProperty) void
setHaltOnFailure
(boolean haltonfailure) void
void
setIncludeEngines
(String includeEngines) void
setOutputDir
(String dir) void
protected boolean
protected abstract void
toForkedRepresentation
(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
-