Package org.apache.ant.antunit.junit3
Class ErrorTestCase
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.ant.antunit.junit3.ErrorTestCase
-
- All Implemented Interfaces:
junit.framework.Test
public class ErrorTestCase extends junit.framework.TestCase
A TestCase that will just report an error when running. This is pretty useful when an error is detected during initialization.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
The name we use for the error test case ('warning')
-
Constructor Summary
Constructors Constructor Description ErrorTestCase(org.apache.tools.ant.BuildException antScriptError)
Creates a TestCase that will report the Ant BuildException when running.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.tools.ant.BuildException
getAntScriptError()
protected void
runTest()
-
Methods inherited from class junit.framework.TestCase
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, run, runBare, setName, setUp, tearDown, toString
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
The name we use for the error test case ('warning')- See Also:
- Constant Field Values
-
-