org.apache.tools.ant.taskdefs.optional.junit
Class BaseTest
java.lang.Object
org.apache.tools.ant.taskdefs.optional.junit.BaseTest
public abstract class BaseTest
extends java.lang.Object
Baseclass for BatchTest and JUnitTest.
destDir
protected File destDir
destination directory
errorProperty
protected String errorProperty
failureProperty
protected String failureProperty
filtertrace
protected boolean filtertrace
fork
protected boolean fork
formatters
protected Vector formatters
haltOnError
protected boolean haltOnError
haltOnFail
protected boolean haltOnFail
ifProperty
protected String ifProperty
unlessProperty
protected String unlessProperty
addFormatter
public void addFormatter(FormatterElement elem)
Allow a formatter nested element.
elem
- a formatter nested element.
getErrorProperty
public String getErrorProperty()
Get the failure property name.
- the name of the property to set on failure.
getFailureProperty
public String getFailureProperty()
Get the failure property name.
- the name of the property to set on failure.
getFiltertrace
public boolean getFiltertrace()
Get the filtertrace attribute.
getFork
public boolean getFork()
Get the fork attribute.
getHaltonerror
public boolean getHaltonerror()
Get the haltonerror attribute.
getHaltonfailure
public boolean getHaltonfailure()
Get the haltonfailure attribute.
getTodir
public String getTodir()
Get the destination directory.
- the destination directory as an absolute path if it exists
otherwise return null
setErrorProperty
public void setErrorProperty(String errorProperty)
Set the name of the error property.
errorProperty
- the name of the property to set if
the test has an error.
setFailureProperty
public void setFailureProperty(String failureProperty)
Set the name of the failure property.
failureProperty
- the name of the property to set if
the test fails.
setFiltertrace
public void setFiltertrace(boolean value)
Set the filtertrace attribute.
setFork
public void setFork(boolean value)
Set the fork attribute.
setHaltonerror
public void setHaltonerror(boolean value)
Set the haltonerror attribute.
setHaltonfailure
public void setHaltonfailure(boolean value)
Set the haltonfailure attribute.
setIf
public void setIf(String propertyName)
Set the if attribute.
If this property is present in project,
the test will be run.
propertyName
- the name of the property to look for.
setTodir
public void setTodir(File destDir)
Sets the destination directory.
destDir
- the destination directory.
setUnless
public void setUnless(String propertyName)
Set the unless attribute.
If this property is present in project,
the test will *not* be run.
propertyName
- the name of the property to look for.