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

Package | org.flexunit.internals
Class | public class AssumptionViolatedException
Inheritance | AssumptionViolatedException Error
Implements | org.hamcrest.SelfDescribing

The `AssumptionViolatedException` is thrown when an assumption in a test evalutes to false. It contains information about the incorrect value that was encountered that caused the assumption to fail as well as the values that the assumption was expecting. The `AssumptionViolatedException` is currently thrown when an assumption fails in the `Assume` class.

See also

org.flexunit.Assume

Public Methods

| Method | Defined By
--- | --- | ---
|  | AssumptionViolatedException(value:Object, matcher:Matcher = null) Constructor. | AssumptionViolatedException
|  | describeTo(description:Description):void Appends description based on the master | AssumptionViolatedException
|  | getMessage():String | AssumptionViolatedException

Constructor Detail

AssumptionViolatedException | () | Constructor

`public function AssumptionViolatedException(value:Object, matcher:Matcher = null)`

Constructor.

Parameters

| `value:Object` — The value that was obtained when the assumption was evaluated.
| `matcher:Matcher` (default = `null`)`` — The matcher used to evaluate the assumption.

Method Detail

describeTo | () | method

`public function describeTo(description:Description):void`

Appends description based on the master

Parameters

| `description:Description`

getMessage | () | method |

`public function getMessage():String`

Returns

| `String` — a message (String) which is a parsed string description of this class

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