Class BaseTest
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.optional.junit.BaseTest
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.io.FiledestDirdestination directoryprotected java.lang.StringerrorPropertyprotected java.lang.StringfailurePropertyprotected booleanfiltertraceprotected booleanforkprotected java.util.Vector<FormatterElement>formattersprotected booleanhaltOnErrorprotected booleanhaltOnFailprotected java.lang.StringifPropertyprotected java.lang.StringunlessProperty
 - 
Constructor SummaryConstructors Constructor Description BaseTest()
 - 
Method SummaryModifier and Type Method Description voidaddFormatter(FormatterElement elem)Allow a formatter nested element.java.lang.StringgetErrorProperty()Get the failure property name.java.lang.StringgetFailureProperty()Get the failure property name.booleangetFiltertrace()Get the filtertrace attribute.booleangetFork()Get the fork attribute.booleangetHaltonerror()Get the haltonerror attribute.booleangetHaltonfailure()Get the haltonfailure attribute.java.lang.ObjectgetIfCondition()The if expressionjava.lang.StringgetTodir()Get the destination directory.java.lang.ObjectgetUnlessCondition()The unless expressionbooleanisSkipNonTests()voidsetErrorProperty(java.lang.String errorProperty)Set the name of the error property.voidsetFailureProperty(java.lang.String failureProperty)Set the name of the failure property.voidsetFiltertrace(boolean value)Set the filtertrace attribute.voidsetFork(boolean value)Set the fork attribute.voidsetHaltonerror(boolean value)Set the haltonerror attribute.voidsetHaltonfailure(boolean value)Set the haltonfailure attribute.voidsetIf(java.lang.Object ifCondition)Set the if attribute.voidsetIf(java.lang.String propertyName)Set the if attribute.voidsetSkipNonTests(boolean skipNonTests)voidsetTodir(java.io.File destDir)Sets the destination directory.voidsetUnless(java.lang.Object unlessCondition)Set the unless attribute.voidsetUnless(java.lang.String propertyName)Set the unless attribute.
 
- 
- 
- 
Field Detail- 
haltOnErrorprotected boolean haltOnError 
 - 
haltOnFailprotected boolean haltOnFail 
 - 
filtertraceprotected boolean filtertrace 
 - 
forkprotected boolean fork 
 - 
ifPropertyprotected java.lang.String ifProperty 
 - 
unlessPropertyprotected java.lang.String unlessProperty 
 - 
formattersprotected java.util.Vector<FormatterElement> formatters 
 - 
destDirprotected java.io.File destDir destination directory
 - 
failurePropertyprotected java.lang.String failureProperty 
 - 
errorPropertyprotected java.lang.String errorProperty 
 
- 
 - 
Method Detail- 
setFiltertracepublic void setFiltertrace(boolean value) Set the filtertrace attribute.- Parameters:
- value- a- booleanvalue.
 
 - 
getFiltertracepublic boolean getFiltertrace() Get the filtertrace attribute.- Returns:
- the attribute.
 
 - 
setForkpublic void setFork(boolean value) Set the fork attribute.- Parameters:
- value- a- booleanvalue.
 
 - 
getForkpublic boolean getFork() Get the fork attribute.- Returns:
- the attribute.
 
 - 
setHaltonerrorpublic void setHaltonerror(boolean value) Set the haltonerror attribute.- Parameters:
- value- a- booleanvalue.
 
 - 
setHaltonfailurepublic void setHaltonfailure(boolean value) Set the haltonfailure attribute.- Parameters:
- value- a- booleanvalue.
 
 - 
getHaltonerrorpublic boolean getHaltonerror() Get the haltonerror attribute.- Returns:
- the attribute.
 
 - 
getHaltonfailurepublic boolean getHaltonfailure() Get the haltonfailure attribute.- Returns:
- the attribute.
 
 - 
setIfpublic void setIf(java.lang.Object ifCondition) 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
 
 - 
setIfpublic void setIf(java.lang.String propertyName) 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
 
 - 
getIfConditionpublic java.lang.Object getIfCondition() The if expression- Returns:
- Object
- Since:
- Ant 1.8.0
 
 - 
setUnlesspublic void setUnless(java.lang.Object unlessCondition) 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
 
 - 
setUnlesspublic void setUnless(java.lang.String propertyName) 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
 
 - 
getUnlessConditionpublic java.lang.Object getUnlessCondition() The unless expression- Returns:
- Object
- Since:
- Ant 1.8.0
 
 - 
addFormatterpublic void addFormatter(FormatterElement elem) Allow a formatter nested element.- Parameters:
- elem- a formatter nested element.
 
 - 
setTodirpublic void setTodir(java.io.File destDir) Sets the destination directory.- Parameters:
- destDir- the destination directory.
 
 - 
getTodirpublic java.lang.String getTodir() Get the destination directory.- Returns:
- the destination directory as an absolute path if it exists
         otherwise return null
 
 - 
getFailurePropertypublic java.lang.String getFailureProperty() Get the failure property name.- Returns:
- the name of the property to set on failure.
 
 - 
setFailurePropertypublic void setFailureProperty(java.lang.String failureProperty) Set the name of the failure property.- Parameters:
- failureProperty- the name of the property to set if the test fails.
 
 - 
getErrorPropertypublic java.lang.String getErrorProperty() Get the failure property name.- Returns:
- the name of the property to set on failure.
 
 - 
setErrorPropertypublic void setErrorProperty(java.lang.String errorProperty) Set the name of the error property.- Parameters:
- errorProperty- the name of the property to set if the test has an error.
 
 - 
setSkipNonTestspublic void setSkipNonTests(boolean skipNonTests) 
 - 
isSkipNonTestspublic boolean isSkipNonTests() 
 
- 
 
-