Packageorg.flexunit.internals
Classpublic class AssumptionViolatedException
InheritanceAssumptionViolatedException Inheritance 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
 MethodDefined 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