|
|||||||||
| 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.ErrorTestCase
public class ErrorTestCase
A TestCase that will just report an error when running. This is pretty useful when an error is detected during initialization.
| Field Summary | |
|---|---|
static java.lang.String |
NAME
The name we use for the error test case ('warning') |
| Constructor Summary | |
|---|---|
ErrorTestCase(org.apache.tools.ant.BuildException antScriptError)
Creates a TestCase that will report the Ant BuildException when running. |
|
| Method Summary | |
|---|---|
org.apache.tools.ant.BuildException |
getAntScriptError()
|
protected void |
runTest()
|
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, 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 |
| Field Detail |
|---|
public static final java.lang.String NAME
| Constructor Detail |
|---|
public ErrorTestCase(org.apache.tools.ant.BuildException antScriptError)
antScriptError - The Ant BuildException that triggered the initialization
failure| Method Detail |
|---|
protected void runTest()
throws org.apache.tools.ant.BuildException
runTest in class junit.framework.TestCaseorg.apache.tools.ant.BuildExceptionpublic org.apache.tools.ant.BuildException getAntScriptError()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||