Package de.hybris.ant.taskdefs.yunit
Class BaseTest
- java.lang.Object
-
- de.hybris.ant.taskdefs.yunit.BaseTest
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.FiledestDirdestination directoryprotected java.lang.StringerrorPropertyprotected java.lang.StringfailurePropertyprotected booleanfiltertraceprotected booleanforkprotected java.util.Vectorformattersprotected booleanhaltOnErrorprotected booleanhaltOnFailprotected java.lang.StringifPropertyprotected booleansuppressJunitTenantprotected java.lang.StringunlessProperty
-
Constructor Summary
Constructors Constructor Description BaseTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier 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.StringgetTodir()Get the destination directory.booleanisSuppressJunitTenant()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.String propertyName)Set the if attribute.voidsetSuppressJunitTenant(boolean suppressJunitTenant)voidsetTodir(java.io.File destDir)Sets the destination directory.voidsetUnless(java.lang.String propertyName)Set the unless attribute.
-
-
-
Field Detail
-
haltOnError
protected boolean haltOnError
-
haltOnFail
protected boolean haltOnFail
-
filtertrace
protected boolean filtertrace
-
fork
protected boolean fork
-
ifProperty
protected java.lang.String ifProperty
-
unlessProperty
protected java.lang.String unlessProperty
-
formatters
protected java.util.Vector formatters
-
destDir
protected java.io.File destDir
destination directory
-
failureProperty
protected java.lang.String failureProperty
-
errorProperty
protected java.lang.String errorProperty
-
suppressJunitTenant
protected boolean suppressJunitTenant
-
-
Method Detail
-
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
public void setIf(java.lang.String propertyName)
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
public void setUnless(java.lang.String propertyName)
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
public void addFormatter(FormatterElement elem)
Allow a formatter nested element.- Parameters:
elem- a formatter nested element.
-
setTodir
public void setTodir(java.io.File destDir)
Sets the destination directory.- Parameters:
destDir- the destination directory.
-
getTodir
public java.lang.String getTodir()
Get the destination directory.- Returns:
- the destination directory as an absolute path if it exists otherwise return null
-
getFailureProperty
public java.lang.String getFailureProperty()
Get the failure property name.- Returns:
- the name of the property to set on failure.
-
setFailureProperty
public 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.
-
getErrorProperty
public java.lang.String getErrorProperty()
Get the failure property name.- Returns:
- the name of the property to set on failure.
-
setErrorProperty
public 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.
-
isSuppressJunitTenant
public boolean isSuppressJunitTenant()
-
setSuppressJunitTenant
public void setSuppressJunitTenant(boolean suppressJunitTenant)
-
-