org.apache.tools.ant.taskdefs.optional.junit

Class BaseTest

public abstract class BaseTest extends Object

Baseclass for BatchTest and JUnitTest.
Field Summary
protected FiledestDir
destination directory
protected StringerrorProperty
protected StringfailureProperty
protected booleanfiltertrace
protected booleanfork
protected Vectorformatters
protected booleanhaltOnError
protected booleanhaltOnFail
protected StringifProperty
protected StringunlessProperty
Method Summary
voidaddFormatter(FormatterElement elem)
StringgetErrorProperty()
StringgetFailureProperty()
booleangetFiltertrace()
booleangetFork()
booleangetHaltonerror()
booleangetHaltonfailure()
StringgetTodir()
voidsetErrorProperty(String errorProperty)
voidsetFailureProperty(String failureProperty)
voidsetFiltertrace(boolean value)
voidsetFork(boolean value)
voidsetHaltonerror(boolean value)
voidsetHaltonfailure(boolean value)
voidsetIf(String propertyName)
voidsetTodir(File destDir)
Sets the destination directory.
voidsetUnless(String propertyName)

Field Detail

destDir

protected File destDir
destination directory

errorProperty

protected String errorProperty

failureProperty

protected String failureProperty

filtertrace

protected boolean filtertrace

fork

protected boolean fork

formatters

protected Vector formatters

haltOnError

protected boolean haltOnError

haltOnFail

protected boolean haltOnFail

ifProperty

protected String ifProperty

unlessProperty

protected String unlessProperty

Method Detail

addFormatter

public void addFormatter(FormatterElement elem)

getErrorProperty

public String getErrorProperty()

getFailureProperty

public String getFailureProperty()

getFiltertrace

public boolean getFiltertrace()

getFork

public boolean getFork()

getHaltonerror

public boolean getHaltonerror()

getHaltonfailure

public boolean getHaltonfailure()

getTodir

public String getTodir()

Returns: the destination directory as an absolute path if it exists otherwise return null

setErrorProperty

public void setErrorProperty(String errorProperty)

setFailureProperty

public void setFailureProperty(String failureProperty)

setFiltertrace

public void setFiltertrace(boolean value)

setFork

public void setFork(boolean value)

setHaltonerror

public void setHaltonerror(boolean value)

setHaltonfailure

public void setHaltonfailure(boolean value)

setIf

public void setIf(String propertyName)

setTodir

public void setTodir(File destDir)
Sets the destination directory.

setUnless

public void setUnless(String propertyName)
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.