Matchers for Action values
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
transient class allowing the creation of a delta
This trait provides implicit definitions and types to create DataTables.
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
Base trait to create expectations
This trait is for transforming matchers of values to matchers of Futures
This trait is for transforming matchers of values to matchers of scalaz.
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 trait provides logical operators to combine match results where potentially a MatchResult expression throws an Exception, either because it is an error or because it is a ThrownExpectation
Implicit conversions for MatchResults
this trait allows to fill-in stack traces on match results for precise location
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 doesn't fill-in stack traces
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 trait can be used to suppress the TypedEqual implicit
This special matcher always return a NotMatch MatchResult.
Matchers for Numerical values
Matchers for Options
class representing a numeric range
Matchers for Results
Those definitions help specifying the result messages for matchers
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
Lightweight ThrownExpectations trait with less implicit methods
This trait can be used to integrate failures and skip messages into specs2
Matchers for traversables
Matchers for util.
This trait adds some implicits to create expectations with the ===
sign
Common interface for checks of a value of type T:
implicit conversions used to create ValueChecks
Specification of the execution context to be used for executing futures This can be overridden to pass in your own execution context
stack this trait to remove the implicit execution context used to evaluate features
Factory methods for creating Expectables
Utility functions for MatchResult.
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the result
this method can be overridden to throw exceptions when checking the result
an Expectable with a description function
an Expectable with a description function
an Expectable with a description
an Expectable
an Expectable with a function to show the element T
this method can be overridden to intercept a MatchResult and change its message before it is thrown
this method can be overridden to intercept a MatchResult and change its message before it is thrown
the match result without any side-effects
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result