Package org.apache.tools.ant.taskdefs.optional.junitlauncher.confined

# Class TestDefinition

java.lang.Object
org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.TestDefinition

Direct Known Subclasses:
  `SingleTestClass`, `TestClasses`

public abstract class TestDefinition extends Object
Represents the configuration details of a test that needs to be launched by the `JUnitLauncherTask`

## Field Summary

Fields
Modifier and Type
Field
Description
`protected String`
`excludeEngines`
`protected String`
`failureProperty`
`protected ForkDefinition`
`forkDefinition`
`protected Boolean`
`haltOnFailure`
`protected String`
`ifProperty`
`protected String`
`includeEngines`
`protected List<ListenerDefinition>`
`listeners`
`protected String`
`outputDir`
`protected String`
`unlessProperty`

## Constructor Summary

Constructors
Constructor
Description
`TestDefinition()`

## Method Summary

Modifier and Type
Method
Description
`void`
`addConfiguredListener(ListenerDefinition listener)`
`ForkDefinition`
`createFork()`
`String[]`
`getExcludeEngines()`
`String`
`getFailureProperty()`
`String[]`
`getIncludeEngines()`
`List<ListenerDefinition>`
`getListeners()`
`String`
`getOutputDir()`
`boolean`
`isHaltOnFailure()`
`void`
`setExcludeEngines(String excludeEngines)`
`void`
`setFailureProperty(String failureProperty)`
`void`
`setHaltOnFailure(boolean haltonfailure)`
`void`
`setIf(String ifProperty)`
`void`
`setIncludeEngines(String includeEngines)`
`void`
`setOutputDir(String dir)`
`void`
`setUnless(String unlessProperty)`
`protected boolean`
`shouldRun(Project project)`
`protected abstract void`
`toForkedRepresentation(JUnitLauncherTask task, XMLStreamWriter writer)`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Field Details

### ifProperty

protected String ifProperty

### unlessProperty

protected String unlessProperty

### haltOnFailure

protected Boolean haltOnFailure

### failureProperty

protected String failureProperty

### outputDir

protected String outputDir

### includeEngines

protected String includeEngines

### excludeEngines

protected String excludeEngines

### forkDefinition

protected ForkDefinition forkDefinition

### listeners

protected List<ListenerDefinition> listeners

## Constructor Details

### TestDefinition

public TestDefinition()

## Method Details

### setIf

public void setIf(String ifProperty)

### setUnless

public void setUnless(String unlessProperty)

### isHaltOnFailure

public boolean isHaltOnFailure()

### setHaltOnFailure

public void setHaltOnFailure(boolean haltonfailure)

### getFailureProperty

public String getFailureProperty()

### setFailureProperty

public void setFailureProperty(String failureProperty)

### addConfiguredListener

public void addConfiguredListener(ListenerDefinition listener)

### getListeners

public List<ListenerDefinition> getListeners()

### setOutputDir

public void setOutputDir(String dir)

### getOutputDir

public String getOutputDir()

### createFork

public ForkDefinition createFork()

### shouldRun

protected boolean shouldRun(Project project)

### getIncludeEngines

public String[] getIncludeEngines()

### setIncludeEngines

public void setIncludeEngines(String includeEngines)

### getExcludeEngines

public String[] getExcludeEngines()

### setExcludeEngines

public void setExcludeEngines(String excludeEngines)

### toForkedRepresentation

protected abstract void toForkedRepresentation(JUnitLauncherTask task, XMLStreamWriter writer) throws XMLStreamException

Throws:
  `XMLStreamException`