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

Class BaseTest

Known Direct Subclasses:
BatchTest, JUnitTest

public abstract class BaseTest
extends java.lang.Object

Baseclass for BatchTest and JUnitTest.

Field Summary

protected File
destDir
destination directory
protected String
errorProperty
protected String
failureProperty
protected boolean
filtertrace
protected boolean
fork
protected Vector
formatters
protected boolean
haltOnError
protected boolean
haltOnFail
protected String
ifProperty
protected String
unlessProperty

Method Summary

void
addFormatter(FormatterElement elem)
java.lang.String
getErrorProperty()
java.lang.String
getFailureProperty()
boolean
getFiltertrace()
boolean
getFork()
boolean
getHaltonerror()
boolean
getHaltonfailure()
String
getTodir()
void
setErrorProperty(String errorProperty)
void
setFailureProperty(String failureProperty)
void
setFiltertrace(boolean value)
void
setFork(boolean value)
void
setHaltonerror(boolean value)
void
setHaltonfailure(boolean value)
void
setIf(String propertyName)
void
setTodir(File destDir)
Sets the destination directory.
void
setUnless(String propertyName)

Field Details

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 Details

addFormatter

public void addFormatter(FormatterElement elem)

getErrorProperty

public java.lang.String getErrorProperty()

getFailureProperty

public java.lang.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-2008 Apache Software Foundation. All Rights Reserved.