public class AntUnitTestCase
extends junit.framework.TestCase
This class is not supposed to be used directly.
It is public only because junit must access it as a public.
Constructor and Description |
---|
AntUnitTestCase(AntUnitSuite suite,
java.io.File scriptFile,
java.lang.String target)
Prepare an AntUnitTestCase that will be executed in a suite.
|
AntUnitTestCase(java.lang.String name)
Prepare an AntUnitTestCase that will be executed alone.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTarget()
Get the AntUnit test target name.
|
void |
run(junit.framework.TestResult result)
Called by a Junit Runner that want to executes specifically
this test target.
|
protected void |
runTest()
Normally never used because this object delegates all execution
to an AntUnitSuite.
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, runBare, setName, setUp, tearDown, toString
public AntUnitTestCase(java.lang.String name)
This constructor is typically used by a junit 3 runner that will reexecute a specific test.
The execution of this test will be embed in a suiteSetUp and suiteTearDown.
name
- The name of the AntUnitTestCase, normally obtained from a
previous execution.public AntUnitTestCase(AntUnitSuite suite, java.io.File scriptFile, java.lang.String target)
target
- test targetsuite
- test suitescriptFile
- test filepublic java.lang.String getTarget()
public void run(junit.framework.TestResult result)
This implementation delegates the call to the suite.
run
in interface junit.framework.Test
run
in class junit.framework.TestCase
protected void runTest() throws org.apache.tools.ant.BuildException
runTest
in class junit.framework.TestCase
org.apache.tools.ant.BuildException