The Expectable class models anything which can be checked by applying a Matcher
It stores a value which is only evaluated when necessary and an optional additional description for that value.
The Expectable object is responsible for creating its own description, based on the value toString method and and an additional description.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class ShouldExpectable[T]
- Self type
-
Expectable[T]
Members list
Value members
Concrete methods
apply a matcher on the value and return a Result
apply a matcher on the value and return a Result
Attributes
Attributes
- Returns
-
a description of any value with the custom description
Attributes
- Returns
-
a description of the value provided by the user a combination of the value show by specs2 and an optional description
evaluate the value and return the same expectable
evaluate the value and return the same expectable
Attributes
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
apply a function to the expectable value
apply a function to the expectable value
Attributes
change the expectable value
change the expectable value
Attributes
apply a function to the description function
apply a function to the description function
Attributes
update the description with another description
update the description with another description
Attributes
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 methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Concrete fields
the value is only evaluated if necessary
the value is only evaluated if necessary