org.apache.tools.ant.taskdefs.optional.junit
public class JUnitTest extends BaseTest implements Cloneable
Run a single JUnit test.
The JUnit test is actually run by {@link JUnitTestRunner}. So read the doc comments for that class :)
Since: Ant 1.2
See Also: JUnitTask JUnitTestRunner
| Constructor Summary | |
|---|---|
| JUnitTest() | |
| JUnitTest(String name) | |
| JUnitTest(String name, boolean haltOnError, boolean haltOnFailure, boolean filtertrace) | |
| Method Summary | |
|---|---|
| Object | clone() |
| long | errorCount() |
| long | failureCount() |
| FormatterElement[] | getFormatters() |
| String | getName()
Get the name of the test class. |
| String | getOutfile()
Get the name of the output file
|
| Properties | getProperties() |
| long | getRunTime() |
| long | runCount() |
| void | setCounts(long runs, long failures, long errors) |
| void | setName(String value)
Set the name of the test class. |
| void | setOutfile(String value)
Set the name of the output file. |
| void | setProperties(Hashtable p) |
| void | setRunTime(long runTime) |
| boolean | shouldRun(Project p) |
Since: Ant 1.5
Returns: the name of the output file.