org.specs2.matcher
Type members
Classlikes
The ContentMatchers trait provides matchers to make comparisons between files, sequences,...
The ContentMatchers trait provides matchers to make comparisons between files, sequences,...
- Companion
- object
Matcher for equalIgnoreSpace comparison, ignoring the nodes order
Matcher for equalIgnoreSpace comparison, ignoring the nodes order
Matcher for equalIgnoreSpace comparison, considering the node order
Matcher for equalIgnoreSpace comparison, considering the node order
The FileMatchers trait provides matchers which are applicable to files
The FileMatchers trait provides matchers which are applicable to files
- Companion
- object
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 provides matchers to check the presence of some expected files vs the actual ones and also ways to verify the contents of these files
Matchers for Json expressions (entered as strings)
Matchers for Json expressions (entered as strings)
- Companion
- object
Different ways of selecting elements in a Json object
Different ways of selecting elements in a Json object
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 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
The PathMatchers trait provides matchers which are applicable to strings representing paths
- Companion
- object
This trait provides matchers to check if a block of code is terminating or not
This trait provides matchers to check if a block of code is terminating or not
- Companion
- object
Matchers for checking if a piece of code compiles or not
Matchers for checking if a piece of code compiles or not
- Companion
- object
The XmlMatcher class matches an xml Node, or a list of Nodes against a list of search functions, which can either search for:
The XmlMatcher class matches an xml Node, or a list of Nodes against a list of search functions, which can either search for:
-
a given direct child, with its label and/or attributes and/or attributes names and values
-
a given child, direct or not (maybe deeply nested), with its label and/or attributes and/or attributes names and values
XmlMatchers can be "chained" by using the \ or the \ methods. In that case, the resulting matcher has a new search function which tries to match the result of the preceding function. For example
must \\("c").\("d")
will be ok.
must \("c").("d")
The XmlMatchers trait provides matchers which are applicable to xml nodes
The XmlMatchers trait provides matchers which are applicable to xml nodes
- Companion
- object