org.apache.tools.ant.taskdefs.optional.junit
Class JUnitTest
- Cloneable
public class JUnitTest
implements Cloneable
Run a single JUnit test.
The JUnit test is actually run by
JUnitTestRunner
.
So read the doc comments for that class :)
addFormatter , getErrorProperty , getFailureProperty , getFiltertrace , getFork , getHaltonerror , getHaltonfailure , getTodir , setErrorProperty , setFailureProperty , setFiltertrace , setFork , setHaltonerror , setHaltonfailure , setIf , setTodir , setUnless |
JUnitTest
public JUnitTest()
JUnitTest
public JUnitTest(String name)
JUnitTest
public JUnitTest(String name,
boolean haltOnError,
boolean haltOnFailure,
boolean filtertrace)
clone
public Object clone()
errorCount
public long errorCount()
failureCount
public long failureCount()
getName
public String getName()
Get the name of the test class.
getOutfile
public String getOutfile()
Get the name of the output file
- the name of the output file.
getProperties
public Properties getProperties()
getRunTime
public long getRunTime()
runCount
public long runCount()
setCounts
public void setCounts(long runs,
long failures,
long errors)
setName
public void setName(String value)
Set the name of the test class.
setOutfile
public void setOutfile(String value)
Set the name of the output file.
setProperties
public void setProperties(Hashtable p)
setRunTime
public void setRunTime(long runTime)
shouldRun
public boolean shouldRun(Project p)
Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.