Inherit this trait to provide a Matcher where both the actual and the expected values can be adapted with a function.
This matcher always matches any value of type T
This trait allows to write expressions like
This trait provides matchers which are applicable to any type of value
Equality Matcher
ValueCheck for a typed expected value.
ValueCheck for an untyped expected value.
Matcher for a boolean value which must be true
Typed equality Matcher
This trait adds some implicits to create expectations with the ===
sign
Specification of the execution context to be used for executing futures This can be overridden to pass in your own execution context
This trait provides implicit definitions and types to create DataTables.
class representing a numeric range
Matchers for the \/ datatype
Matchers for the Either datatype
This trait adds the possibility to retry a given matcher until it succeeds.
These matchers can be used to check if exceptions are thrown or not
The Expectable class models anything which can be checked by applying a Matcher
This trait provides implicit definitions to transform any value into an Expectable
This trait is for transforming matchers of values to matchers of Futures
Matchers for Maps
this class allows to throw a match failure result in an Exception
this class allows to throw a pending result in an Exception
Result of a Match.
this class allows to throw a skipped match result in an Exception
The signature of this class constructor is unusual, with a useless implicit parameter.
The Matcher
trait is the base trait for any Matcher.
This trait provides 'zip' operators to create matchers on tuples based on "zipped" matchers on fields
Generation code for the MatcherZipOperators trait
Trait aggregating the most common specs2 matchers
This trait provides implicit definitions from MatchResults and Booleans to Results.
This kind of expectable can be followed by the verb must to apply a matcher:
This trait provides implicit definitions to transform any value into a MustExpectable
This trait provides implicit definitions to transform any value into a MustExpectable, throwing exceptions when a match fails
This special matcher always return a NeutralMatch MatchResult (an implicit Success)
This matcher never matches any value of type T
This trait can be used to suppress the CanBeEqual implicits
stack this trait to remove the implicit execution context used to evaluate features
This trait can be mixed in to remove the implicit definitions for zipping matchers
code generation for the NoMatcherZipOperatorsImplicits trait
This trait can be used to remove aka and must methods on any value
This trait can be used to remove aka and should methods on any value
This trait can be used to cancel the effect of thrown expectations.
This special matcher always return a NotMatch MatchResult.
Matchers for Numerical values
Matchers for Options
Matchers for Results
This trait represents any Scope that is used to enclose expectations which might be thrown
This kind of expectable can be followed by the verb should to apply a matcher:
This trait provides implicit definitions to transform any value into a ShouldExpectable
This trait provides implicit definitions to transform any value into a ShouldExpectable, throwing exceptions when a match fails
This trait can be used in conjonction with Pattern matchers:
This trait evaluates expectations and stores them in a local variable for further usage
The StringMatchers
trait provides matchers which are applicable to String objects
Thrown expectations will throw a FailureException if a match fails
This trait can be used to integrate failures and skip messages into specs2
Matchers for traversables
Matchers for util.
Common interface for checks of a value of type T:
implicit conversions used to create ValueChecks
Factory methods for creating Expectables