Class TestDefinition
- java.lang.Object
-
- org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.TestDefinition
-
- Direct Known Subclasses:
SingleTestClass,TestClasses
public abstract class TestDefinition extends java.lang.ObjectRepresents the configuration details of a test that needs to be launched by theJUnitLauncherTask
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestDefinition.ForkedRepresentation
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringexcludeEnginesprotected java.lang.StringfailurePropertyprotected ForkDefinitionforkDefinitionprotected java.lang.BooleanhaltOnFailureprotected java.lang.StringifPropertyprotected java.lang.StringincludeEnginesprotected java.util.List<ListenerDefinition>listenersprotected java.io.FileoutputDirprotected java.lang.StringunlessProperty
-
Constructor Summary
Constructors Constructor Description TestDefinition()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddConfiguredListener(ListenerDefinition listener)ForkDefinitioncreateFork()java.lang.String[]getExcludeEngines()java.lang.StringgetFailureProperty()java.lang.String[]getIncludeEngines()java.util.List<ListenerDefinition>getListeners()java.io.FilegetOutputDir()booleanisHaltOnFailure()voidsetExcludeEngines(java.lang.String excludeEngines)voidsetFailureProperty(java.lang.String failureProperty)voidsetHaltOnFailure(boolean haltonfailure)voidsetIf(java.lang.String ifProperty)voidsetIncludeEngines(java.lang.String includeEngines)voidsetOutputDir(java.io.File dir)voidsetUnless(java.lang.String unlessProperty)protected booleanshouldRun(Project project)protected abstract java.util.List<TestDefinition.ForkedRepresentation>toForkedRepresentations()
-
-
-
Field Detail
-
ifProperty
protected java.lang.String ifProperty
-
unlessProperty
protected java.lang.String unlessProperty
-
haltOnFailure
protected java.lang.Boolean haltOnFailure
-
failureProperty
protected java.lang.String failureProperty
-
outputDir
protected java.io.File outputDir
-
includeEngines
protected java.lang.String includeEngines
-
excludeEngines
protected java.lang.String excludeEngines
-
forkDefinition
protected ForkDefinition forkDefinition
-
listeners
protected java.util.List<ListenerDefinition> listeners
-
-
Method Detail
-
setIf
public void setIf(java.lang.String ifProperty)
-
setUnless
public void setUnless(java.lang.String unlessProperty)
-
isHaltOnFailure
public boolean isHaltOnFailure()
-
setHaltOnFailure
public void setHaltOnFailure(boolean haltonfailure)
-
getFailureProperty
public java.lang.String getFailureProperty()
-
setFailureProperty
public void setFailureProperty(java.lang.String failureProperty)
-
addConfiguredListener
public void addConfiguredListener(ListenerDefinition listener)
-
getListeners
public java.util.List<ListenerDefinition> getListeners()
-
setOutputDir
public void setOutputDir(java.io.File dir)
-
getOutputDir
public java.io.File getOutputDir()
-
createFork
public ForkDefinition createFork()
-
shouldRun
protected boolean shouldRun(Project project)
-
getIncludeEngines
public java.lang.String[] getIncludeEngines()
-
setIncludeEngines
public void setIncludeEngines(java.lang.String includeEngines)
-
getExcludeEngines
public java.lang.String[] getExcludeEngines()
-
setExcludeEngines
public void setExcludeEngines(java.lang.String excludeEngines)
-
toForkedRepresentations
protected abstract java.util.List<TestDefinition.ForkedRepresentation> toForkedRepresentations() throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
-