Class BaseTest
java.lang.Object
org.apache.tools.ant.taskdefs.optional.junit.BaseTest
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFormatter
(FormatterElement elem) Allow a formatter nested element.Get the failure property name.Get the failure property name.boolean
Get the filtertrace attribute.boolean
getFork()
Get the fork attribute.boolean
Get the haltonerror attribute.boolean
Get the haltonfailure attribute.The if expressiongetTodir()
Get the destination directory.The unless expressionboolean
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
Set the if attribute.void
Set the if attribute.void
setSkipNonTests
(boolean skipNonTests) void
Sets the destination directory.void
Set the unless attribute.void
Set the unless attribute.
-
Field Details
-
haltOnError
protected boolean haltOnError -
haltOnFail
protected boolean haltOnFail -
filtertrace
protected boolean filtertrace -
fork
protected boolean fork -
ifProperty
-
unlessProperty
-
formatters
-
destDir
destination directory -
failureProperty
-
errorProperty
-
-
Constructor Details
-
BaseTest
public BaseTest()
-
-
Method Details
-
setFiltertrace
public void setFiltertrace(boolean value) Set the filtertrace attribute.- Parameters:
value
- aboolean
value.
-
getFiltertrace
public boolean getFiltertrace()Get the filtertrace attribute.- Returns:
- the attribute.
-
setFork
public void setFork(boolean value) Set the fork attribute.- Parameters:
value
- aboolean
value.
-
getFork
public boolean getFork()Get the fork attribute.- Returns:
- the attribute.
-
setHaltonerror
public void setHaltonerror(boolean value) Set the haltonerror attribute.- Parameters:
value
- aboolean
value.
-
setHaltonfailure
public void setHaltonfailure(boolean value) Set the haltonfailure attribute.- Parameters:
value
- aboolean
value.
-
getHaltonerror
public boolean getHaltonerror()Get the haltonerror attribute.- Returns:
- the attribute.
-
getHaltonfailure
public boolean getHaltonfailure()Get the haltonfailure attribute.- Returns:
- the attribute.
-
setIf
Set the if attribute. If this expression evaluates to true or the name of a property which is present in project, the test will be run.- Parameters:
ifCondition
- the expression to evaluate- Since:
- Ant 1.8.0
-
setIf
Set the if attribute. If this expression evaluates to true or the name of a property which is present in project, the test will be run.- Parameters:
propertyName
- the expression to evaluate
-
getIfCondition
-
setUnless
Set the unless attribute. If this expression evaluates to false or the name of a property which is not present in project, the test will be run.- Parameters:
unlessCondition
- the expression to evaluate- Since:
- Ant 1.8.0
-
setUnless
Set the unless attribute. If this expression evaluates to false or the name of a property which is not present in project, the test will be run.- Parameters:
propertyName
- the expression to evaluate
-
getUnlessCondition
-
addFormatter
Allow a formatter nested element.- Parameters:
elem
- a formatter nested element.
-
setTodir
Sets the destination directory.- Parameters:
destDir
- the destination directory.
-
getTodir
Get the destination directory.- Returns:
- the destination directory as an absolute path if it exists
otherwise return
null
-
getFailureProperty
Get the failure property name.- Returns:
- the name of the property to set on failure.
-
setFailureProperty
Set the name of the failure property.- Parameters:
failureProperty
- the name of the property to set if the test fails.
-
getErrorProperty
Get the failure property name.- Returns:
- the name of the property to set on failure.
-
setErrorProperty
Set the name of the error property.- Parameters:
errorProperty
- the name of the property to set if the test has an error.
-
setSkipNonTests
public void setSkipNonTests(boolean skipNonTests) -
isSkipNonTests
public boolean isSkipNonTests()
-