This kind of expectable can be followed by the verb must to apply a matcher:
1 must beEqualTo(1)
For convenience, several mustMatcher methods have also been defined as shortcuts to equivalent:
a must matcher
- Companion:
- object
Value members
Concrete methods
Inherited methods
apply a matcher on the value and return a MatchResult which can later on be transformed to a simple Result
apply a matcher on the value and return a MatchResult which can later on be transformed to a simple Result
- Inherited from:
- Expectable
additional checks can be done on the result, such as throwing an exception
additional checks can be done on the result, such as throwing an exception
- Inherited from:
- Expectable
additional checks can be done on a result, such as throwing an exception
additional checks can be done on a result, such as throwing an exception
- Inherited from:
- Expectable
- Returns:
a description of the value provided by the user a combination of the value show by specs2 and an optional description
- Inherited from:
- Expectable
evaluate the value and return the same expectable
evaluate the value and return the same expectable
- Inherited from:
- Expectable
evaluate the value once and return an expectable with the same expression, ready to be evaluated again
evaluate the value once and return an expectable with the same expression, ready to be evaluated again
- Inherited from:
- Expectable
apply a function to the expectable value
apply a function to the expectable value
- Inherited from:
- Expectable
apply a function to the description function
apply a function to the description function
- Inherited from:
- Expectable
update the description with another description
update the description with another description
- Inherited from:
- Expectable
Inherited fields
the value is only evaluated if necessary
the value is only evaluated if necessary
- Inherited from:
- Expectable
definition of the value, possibly evaluating to different results each time it is invoked
definition of the value, possibly evaluating to different results each time it is invoked
- Inherited from:
- Expectable