|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hjl.junitscript.ant.BaseTest | +--com.hjl.junitscript.ant.JUnitTest
Run a single JUnit test.
The JUnit test is actually run by JUnitTestRunner
.
So read the doc comments for that class :)
JUnitTask
,
JUnitTestRunner
Field Summary |
Fields inherited from class com.hjl.junitscript.ant.BaseTest |
args, destDir, errorProperty, failureProperty, filtertrace, fork, formatters, haltOnError, haltOnFail, ifProperty, unlessProperty, useArgs |
Constructor Summary | |
JUnitTest()
|
|
JUnitTest(java.lang.String className)
|
Method Summary | |
java.lang.Object |
clone()
|
long |
errorCount()
|
long |
failureCount()
|
java.lang.String |
getClassName()
Get the name of the test class. |
com.hjl.junitscript.ant.FormatterElement[] |
getFormatters()
|
java.lang.String |
getName()
Get the name of the test. |
java.lang.String |
getNameAsFile()
Get the name of the test. |
java.lang.String |
getOutfile()
Get the name of the output file |
java.util.Properties |
getProperties()
|
long |
getRunTime()
|
boolean |
getUseArgs()
|
long |
runCount()
|
void |
setClassName(java.lang.String value)
Set the class name of the test class. |
void |
setCounts(long runs,
long failures,
long errors)
|
void |
setOutfile(java.lang.String value)
Set the name of the output file. |
void |
setProperties(java.util.Hashtable p)
|
void |
setRunTime(long runTime)
|
void |
setScript(java.io.File value)
Set the script name of the test class. |
boolean |
shouldRun(org.apache.tools.ant.Project p)
|
Methods inherited from class com.hjl.junitscript.ant.BaseTest |
addFormatter, createArg, getArguments, getErrorProperty, getFailureProperty, getFiltertrace, getFork, getHaltonerror, getHaltonfailure, getTodir, setArguments, setErrorProperty, setFailureProperty, setFiltertrace, setFork, setHaltonerror, setHaltonfailure, setIf, setTodir, setUnless, setUseArgs |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JUnitTest()
public JUnitTest(java.lang.String className)
Method Detail |
public void setClassName(java.lang.String value)
public void setScript(java.io.File value)
public void setOutfile(java.lang.String value)
public java.lang.String getName()
public java.lang.String getNameAsFile()
public java.lang.String getClassName()
public boolean getUseArgs()
public java.lang.String getOutfile()
public void setCounts(long runs, long failures, long errors)
public void setRunTime(long runTime)
public long runCount()
public long failureCount()
public long errorCount()
public long getRunTime()
public java.util.Properties getProperties()
public void setProperties(java.util.Hashtable p)
public boolean shouldRun(org.apache.tools.ant.Project p)
public com.hjl.junitscript.ant.FormatterElement[] getFormatters()
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |