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
The ContentMatchers trait provides matchers to make comparisons between files, sequences,.
This trait provides implicit definitions and types to create DataTables.
The dependency matchers trait provides a way to specify the dependencies that should be verified in your project and then to check that there's no unwanted dependency in the code.
Matchers for the \/ datatype
Matchers for the Either datatype
Matcher for equalIgnoreSpace comparison, ignoring the nodes order
Matcher for equalIgnoreSpace comparison, considering the node order
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 class is only used as a transient holder for the expected parsed value, to overcome overloaded method issues
The FileMatchers trait provides matchers which are applicable to files
This trait provides matchers to check the presence of some expected files vs the actual ones and also ways to verify the contents of these files
This trait is for transforming matchers of values to matchers of Futures
This trait is for transforming matchers of values to matchers of scalaz.
This trait adds implicit conversions to be able to use [Hamcrest matchers](http://code.
This trait throws AssertionFailed errors when a match fails.
This trait can be imported to use MustMatchers in JUnit
These traits and objects can be used in JUnit
This trait can be imported to use ShouldMatchers in JUnit
Matchers for Json expressions (entered as strings)
Different ways of selecting elements in a Json object
abstract JSON types for specs2
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.
Macro definitions to generate matchers for the members of a type T
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
Matchers for parser combinators
The PathFunction object encapsulate a search for a node and/or attributes or attributeValues with an XPath function
If node
has some children, then they are searched using equality
The PathMatchers trait provides matchers which are applicable to strings representing paths
class representing a numeric range
Matchers for Process[Task, T]
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
Matchers for scalaz.
This trait provides matchers to check if a block of code is terminating or not
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
The XmlMatcher class matches an xml Node, or a list of Nodes against a list of search functions, which can either search for:
The XmlMatchers trait provides matchers which are applicable to xml nodes
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.
Macros implementations
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