|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.ant.antunit.junit3.AntUnitTestCase
public class AntUnitTestCase
JUnit TestCase that will executes a single AntUnit target. This class is not
supposed to be used directly.
It is public only because junit must access it as a public.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, runBare, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
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, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AntUnitTestCase(java.lang.String name)
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
- antScriptRunner
- executionEnv
- Method Detail |
---|
public java.lang.String getTarget()
public void run(junit.framework.TestResult result)
run
in interface junit.framework.Test
run
in class junit.framework.TestCase
protected void runTest() throws BuildException
runTest
in class junit.framework.TestCase
BuildException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |