org.specs2.matcher

Members list

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,...

Attributes

Companion
object
Supertypes
trait TraversableMatchers
trait NumberOfTimes
trait ValueChecksLowImplicits
trait TraversableBaseMatchers
trait FileMatchers
trait PathMatchers
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
trait DifferenceFilters
class Object
trait Matchable
class Any
Show all
Known subtypes
object ContentMatchers.type

Attributes

Companion
trait
Supertypes
trait TraversableMatchers
trait NumberOfTimes
trait ValueChecksLowImplicits
trait TraversableBaseMatchers
trait FileMatchers
trait PathMatchers
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
trait DifferenceFilters
class Object
trait Matchable
class Any
Show all
Self type
class EqualIgnoringSpaceMatcher(node: Seq[Node]) extends Matcher[Seq[Node]], XmlMatcherKoMessage

Matcher for equalIgnoreSpace comparison, ignoring the nodes order

Matcher for equalIgnoreSpace comparison, ignoring the nodes order

Attributes

Supertypes
trait Matcher[Seq[Node]]
class Object
trait Matchable
class Any
class EqualIgnoringSpaceMatcherOrdered(node: Seq[Node]) extends Matcher[Seq[Node]], XmlMatcherKoMessage

Matcher for equalIgnoreSpace comparison, considering the node order

Matcher for equalIgnoreSpace comparison, considering the node order

Attributes

Supertypes
trait Matcher[Seq[Node]]
class Object
trait Matchable
class Any
case class FailTypecheckMatcher(expected: String) extends Matcher[TypecheckResult]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[TypecheckResult]
class Object
trait Matchable
class Any
Show all
trait FileMatchers extends PathMatchers

The FileMatchers trait provides matchers which are applicable to files

The FileMatchers trait provides matchers which are applicable to files

Attributes

Companion
object
Supertypes
trait PathMatchers
class Object
trait Matchable
class Any
Known subtypes
object FileMatchers extends FileMatchers

Attributes

Companion
trait
Supertypes
trait FileMatchers
trait PathMatchers
class Object
trait Matchable
class Any
Self type
trait FilesContentMatchers extends FileMatchers, LinesContentMatchers, TraversableMatchers, ExpectationsCreation

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

Attributes

Supertypes
trait TraversableMatchers
trait NumberOfTimes
trait ValueChecksLowImplicits
trait TraversableBaseMatchers
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
trait DifferenceFilters
trait FileMatchers
trait PathMatchers
class Object
trait Matchable
class Any
Show all
Known subtypes
object ContentMatchers.type
case class JsonArray(list: List[Any]) extends JsonType

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JsonType
class Object
trait Matchable
class Any
Show all
case class JsonBoolean(b: Boolean) extends JsonType

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JsonType
class Object
trait Matchable
class Any
Show all
case class JsonMap(map: Map[String, Any]) extends JsonType

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JsonType
class Object
trait Matchable
class Any
Show all
trait JsonMatchers extends Expectations

Matchers for Json expressions (entered as strings)

Matchers for Json expressions (entered as strings)

Attributes

Companion
object
Supertypes
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
class Object
trait Matchable
class Any
Show all
Known subtypes
object JsonMatchers.type
Self type
object JsonMatchers extends JsonMatchers

Attributes

Companion
trait
Supertypes
trait JsonMatchers
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
class Object
trait Matchable
class Any
Show all
Self type
case object JsonNull extends JsonType

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JsonType
class Object
trait Matchable
class Any
Show all
Self type
JsonNull.type
case class JsonNumber(d: Double) extends JsonType

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JsonType
class Object
trait Matchable
class Any
Show all

Different ways of selecting elements in a Json object

Different ways of selecting elements in a Json object

Attributes

Supertypes
class Object
trait Matchable
class Any
case class JsonString(s: String) extends JsonType

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait JsonType
class Object
trait Matchable
class Any
Show all
sealed trait JsonType

abstract JSON types for specs2

abstract JSON types for specs2

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class JsonArray
class JsonBoolean
class JsonMap
object JsonNull.type
class JsonNumber
class JsonString
Show all
object JsonType

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
JsonType.type

Attributes

Companion
object
Supertypes
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
trait DifferenceFilters
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Companion
trait
Supertypes
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
trait DifferenceFilters
class Object
trait Matchable
class Any
Show all
Self type
case class PathFunction(node: Node, function: XPathFunction, attributes: List[String], attributeValues: Map[String, String], exactMatch: Boolean, textMessage: Option[String], textMatcher: Matcher[String]) extends Seq[Node] => Seq[Node], XPathFunctions

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

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Seq[Node] => Seq[Node]
class Object
trait Matchable
class Any
Show all
trait PathMatchers

The PathMatchers trait provides matchers which are applicable to strings representing paths

The PathMatchers trait provides matchers which are applicable to strings representing paths

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait FileMatchers
object FileMatchers.type
object ContentMatchers.type
object PathMatchers.type
Show all
Self type
object PathMatchers extends PathMatchers

Attributes

Companion
trait
Supertypes
trait PathMatchers
class Object
trait Matchable
class Any
Self type
trait ScalaInterpreterMatchers extends Expectations

Attributes

Supertypes
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
class Object
trait Matchable
class Any
Show all
class TerminationMatcher[-T](retries: Int, sleep: Duration, whenAction: Option[() => Any], whenDesc: Option[String], onlyWhen: Boolean)(using ee: ExecutionEnv) extends Matcher[T]

Attributes

Supertypes
trait Matcher[T]
class Object
trait Matchable
class Any

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

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object TerminationMatchers.type

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
class TypecheckMatcher extends Matcher[TypecheckResult]

Attributes

Supertypes
trait Matcher[TypecheckResult]
class Object
trait Matchable
class Any

Matchers for checking if a piece of code compiles or not

Matchers for checking if a piece of code compiles or not

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object TypecheckMatchers.type

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class PathFunction
case class XmlMatcher(functions: Seq[PathFunction]) extends Matcher[Seq[Node]]

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.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[Seq[Node]]
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait XmlMatchers

The XmlMatchers trait provides matchers which are applicable to xml nodes

The XmlMatchers trait provides matchers which are applicable to xml nodes

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object XmlMatchers.type
object XmlMatchers extends XmlMatchers

Attributes

Companion
trait
Supertypes
trait XmlMatchers
class Object
trait Matchable
class Any
Self type

Types

type HasPath = { def getPath(): String; }