org.apache.tools.ant.taskdefs.optional.junit
public abstract class BaseTest extends Object
| Field Summary | |
|---|---|
| protected File | destDir destination directory |
| protected String | errorProperty |
| protected String | failureProperty |
| protected boolean | filtertrace |
| protected boolean | fork |
| protected Vector | formatters |
| protected boolean | haltOnError |
| protected boolean | haltOnFail |
| protected String | ifProperty |
| protected String | unlessProperty |
| Method Summary | |
|---|---|
| void | addFormatter(FormatterElement elem)
Allow a formatter nested element. |
| String | getErrorProperty()
Get the failure property name. |
| String | getFailureProperty()
Get the failure property name. |
| boolean | getFiltertrace()
Get the filtertrace attribute. |
| boolean | getFork()
Get the fork attribute. |
| boolean | getHaltonerror()
Get the haltonerror attribute. |
| boolean | getHaltonfailure()
Get the haltonfailure attribute. |
| String | getTodir()
Get the destination directory. |
| void | setErrorProperty(String errorProperty)
Set the name of the error property. |
| void | setFailureProperty(String failureProperty)
Set the name of the failure property. |
| void | setFiltertrace(boolean value)
Set the filtertrace attribute. |
| void | setFork(boolean value)
Set the fork attribute. |
| void | setHaltonerror(boolean value)
Set the haltonerror attribute. |
| void | setHaltonfailure(boolean value)
Set the haltonfailure attribute. |
| void | setIf(String propertyName)
Set the if attribute.
|
| void | setTodir(File destDir)
Sets the destination directory. |
| void | setUnless(String propertyName)
Set the unless attribute.
|
Parameters: elem a formatter nested element.
Returns: the name of the property to set on failure.
Returns: the name of the property to set on failure.
Returns: the attribute.
Returns: the attribute.
Returns: the attribute.
Returns: the attribute.
Returns: the destination directory as an absolute path if it exists otherwise return null
Parameters: errorProperty the name of the property to set if the test has an error.
Parameters: failureProperty the name of the property to set if the test fails.
Parameters: value a boolean value.
Parameters: value a boolean value.
Parameters: value a boolean value.
Parameters: value a boolean value.
Parameters: propertyName the name of the property to look for.
Parameters: destDir the destination directory.
Parameters: propertyName the name of the property to look for.