Package de.hybris.ant.taskdefs.yunit
Class BaseTest
java.lang.Object
de.hybris.ant.taskdefs.yunit.BaseTest
Baseclass for BatchTest and JUnitTest.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFormatter(FormatterElement elem) Allow a formatter nested element.Get the failure property name.Get the failure property name.booleanGet the filtertrace attribute.booleangetFork()Get the fork attribute.booleanGet the haltonerror attribute.booleanGet the haltonfailure attribute.getTodir()Get the destination directory.booleanvoidsetErrorProperty(String errorProperty) Set the name of the error property.voidsetFailureProperty(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.voidSet the if attribute.voidsetSuppressJunitTenant(boolean suppressJunitTenant) voidSets the destination directory.voidSet 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
-
suppressJunitTenant
protected boolean suppressJunitTenant
-
-
Constructor Details
-
BaseTest
public BaseTest()
-
-
Method Details
-
setFiltertrace
public void setFiltertrace(boolean value) Set the filtertrace attribute.- Parameters:
value- abooleanvalue.
-
getFiltertrace
public boolean getFiltertrace()Get the filtertrace attribute.- Returns:
- the attribute.
-
setFork
public void setFork(boolean value) Set the fork attribute.- Parameters:
value- abooleanvalue.
-
getFork
public boolean getFork()Get the fork attribute.- Returns:
- the attribute.
-
setHaltonerror
public void setHaltonerror(boolean value) Set the haltonerror attribute.- Parameters:
value- abooleanvalue.
-
setHaltonfailure
public void setHaltonfailure(boolean value) Set the haltonfailure attribute.- Parameters:
value- abooleanvalue.
-
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 property is present in project, the test will be run.- Parameters:
propertyName- the name of the property to look for.
-
setUnless
Set the unless attribute. If this property is present in project, the test will *not* be run.- Parameters:
propertyName- the name of the property to look for.
-
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.
-
isSuppressJunitTenant
public boolean isSuppressJunitTenant() -
setSuppressJunitTenant
public void setSuppressJunitTenant(boolean suppressJunitTenant)
-