ErrorTestCase (ant-antunit API)
Description: declaration: package: org.apache.ant.antunit.junit3, class: ErrorTestCase

# 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
  Modifikator und Typ
  Feld
  Beschreibung
  `static final String`
  `NAME`
  The name we use for the error test case ('warning')

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `ErrorTestCase(org.apache.tools.ant.BuildException antScriptError)`
  Creates a TestCase that will report the Ant BuildException when running.

- ## Methodenübersicht

  Modifikator und Typ
  Methode
  Beschreibung
  `org.apache.tools.ant.BuildException`
  `getAntScriptError()`
  `protected void`
  `runTest()`

  ### 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`

  ### Von Klasse geerbte Methoden Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Felddetails

  - ### NAME

    public static final String NAME
    The name we use for the error test case ('warning')
    Siehe auch:
      - Konstantenfeldwerte

- ## 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:
      `runTest` in Klasse `junit.framework.TestCase`
    Löst aus:
      `org.apache.tools.ant.BuildException`

  - ### getAntScriptError

    public org.apache.tools.ant.BuildException getAntScriptError()