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
    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
     
    protected void
     

    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

  • 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()