API Documentation | All Packages | All Classes | Index | Frames No Frames |
FailureFormatter

Package | org.flexunit.reporting
Class | public class FailureFormatter
Inheritance | FailureFormatter Object

The `FailureFormatter` is responsible for formatting potential failures.

Public Methods

| Method | Defined By
--- | --- | ---
|  | isError(error:Error):Boolean [static] Returns a Boolean indicating whether the the provided error is an actual failure or if the error is an expected failure. | FailureFormatter
|  | xmlEscapeMessage(message:String):String [static] Filters XML characters out of a provided message. | FailureFormatter

Method Detail

isError | () | method

`public static function isError(error:Error):Boolean`

Returns a Boolean indicating whether the the provided `error` is an actual failure or if the `error` is an expected failure.

Parameters

| `error:Error` — The Error to check and determine if it is an actual or expected Error.

Returns

| `Boolean` — A Boolean value indicating whehter `error` was an actual or expected Error.

xmlEscapeMessage | () | method |

`public static function xmlEscapeMessage(message:String):String`

Filters XML characters out of a provided `message`.

Parameters

| `message:String` — The String that will have XML characters filtered out of it.

Returns

| `String` — the `message` without XML characters.

Thu Apr 10 2014, 08:07 AM +10:00