Klasse ErrorTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.ant.antunit.junit3.ErrorTestCase
- Alle implementierten Schnittstellen:
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.
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungErrorTestCase(org.apache.tools.ant.BuildException antScriptError) Creates a TestCase that will report the Ant BuildException when running. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungorg.apache.tools.ant.BuildExceptionprotected voidrunTest()Von Klasse geerbte Methoden 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
-
Felddetails
-
NAME
-
-
Konstruktordetails
-
ErrorTestCase
public ErrorTestCase(org.apache.tools.ant.BuildException antScriptError) Creates a TestCase that will report the Ant BuildException when running.- Parameter:
antScriptError- The Ant BuildException that triggered the initialization failure
-
-
Methodendetails
-
runTest
protected void runTest() throws org.apache.tools.ant.BuildException- Setzt außer Kraft:
runTestin Klassejunit.framework.TestCase- Löst aus:
org.apache.tools.ant.BuildException
-
getAntScriptError
public org.apache.tools.ant.BuildException getAntScriptError()
-