Package | org.flexunit.runner.notification |
Class | public class Failure |
Inheritance | Failure ![]() |
Failure
holds a description of the failed test and the
exception that was thrown while running it. In most cases the
org.flexunit.runner.Description
will be of a single test. However,
if problems are encountered while constructing the test (for example, if a
Before method is static), it may describe something other than a single test.
Property | Defined By | ||
---|---|---|---|
description : IDescription [read-only]
| Failure | ||
exception : Error [read-only]
| Failure | ||
message : String [read-only]
Convenience method. | Failure | ||
stackTrace : String [read-only]
Convenience method. | Failure | ||
testHeader : String [read-only]
| Failure |
Method | Defined By | ||
---|---|---|---|
Failure(description:IDescription, exception:Error)
Constructor. | Failure |
description | property |
exception | property |
exception:Error
[read-only]
public function get exception():Error
message | property |
message:String
[read-only] Convenience method.
public function get message():String
stackTrace | property |
stackTrace:String
[read-only] Convenience method.
public function get stackTrace():String
testHeader | property |
testHeader:String
[read-only]
public function get testHeader():String
Failure | () | Constructor |
public function Failure(description:IDescription, exception:Error)
Constructor.
Constructs a Failure
with the given description and exception.
description:IDescription — An IDescription of the test that failed.
| |
exception:Error — The exception that was thrown while running the test.
|