Packageasunit.framework
Classpublic class TestFailure

A TestFailure collects a failed test together with the caught exception.

See also

TestResult


Protected Properties
 PropertyDefined by
  fFailedTest : Test
TestFailure
  fFailedTestMethod : String
TestFailure
  fThrownException : Error
TestFailure
Public Methods
 MethodDefined by
  
TestFailure(failedTest:Test, thrownException:Error)
Constructs a TestFailure with the given test and exception.
TestFailure
  
TestFailure
  
failedFeature():String
TestFailure
  
failedMethod():String
TestFailure
  
Gets the failed test case.
TestFailure
  
isFailure():Boolean
TestFailure
  
Gets the thrown exception.
TestFailure
  
toString():String
Returns a short description of the failure.
TestFailure
Property detail
fFailedTestproperty
protected var fFailedTest:Test
fFailedTestMethodproperty 
protected var fFailedTestMethod:String
fThrownExceptionproperty 
protected var fThrownException:Error
Constructor detail
TestFailure()constructor
public function TestFailure(failedTest:Test, thrownException:Error)

Constructs a TestFailure with the given test and exception.

Parameters
failedTest:Test
 
thrownException:Error
Method detail
exceptionMessage()method
public function exceptionMessage():String

Returns
String
failedFeature()method 
public function failedFeature():String

Returns
String
failedMethod()method 
public function failedMethod():String

Returns
String
failedTest()method 
public function failedTest():Test

Gets the failed test case.

Returns
Test
isFailure()method 
public function isFailure():Boolean

Returns
Boolean
thrownException()method 
public function thrownException():Error

Gets the thrown exception.

Returns
Error
toString()method 
public function toString():String

Returns a short description of the failure.

Returns
String