This kind of expectable can be followed by the verb should to apply a matcher:
1 should beEqualTo(1)
For convenience, several shouldMatcher methods have also been defined as shortcuts to equivalent:
a should matcher
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Expectable[T]trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Inherited methods
apply a matcher on the value and return a Result
Attributes
- Returns
-
a description of any value with the custom description
- Inherited from:
- Expectable
Attributes
- 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 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
Attributes
- Inherited from:
- Expectable
change the expectable value
apply a function to the expectable value
Attributes
- Inherited from:
- Expectable
Attributes
- Inherited from:
- Expectable
apply a function to the description function
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
update the description with another description
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
Attributes
- Inherited from:
- Expectable
Inherited fields
the value is only evaluated if necessary