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
This trait enables some syntactic sugar when it is necessary to pass several arbitrary instances
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
The ContentMatchers trait provides matchers to make comparisons between files, sequences,.
This trait provides implicit definitions and types to create DataTables.
class representing a numeric range
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 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
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 adds some syntactic sugar to transform function to properties by appending forAll
This trait is for transforming matchers of values to matchers of Futures
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)
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.
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 can be used to suppress the CanBeEqual implicits
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
This trait can be mixed in a Specification to avoid counting the number of times that a property was executed as the number of expectations.
Matchers for Options
This class is the base class for the display and set case classes.
Matchers for parser combinators
This trait adds some syntactic sugar to transform partial functions to properties by appending forAll
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
Matchers for Results
The ScalaCheckMatchers trait provides matchers which allow to assess properties multiple times with generated data.
This trait provides generation parameters to use with the ScalaCheckMatchers
This trait represents any Scope that is used to enclose expectations which might be thrown
This trait allows to enclose expectations throwing exceptions in a Scope
trait:
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
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
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
Lower implicit conversions 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
Factory methods for creating Expectables
Macros implementations