Package

org.specs2

matcher

Permalink

package matcher

Linear Supertypes
ReturnsSyntax, ExpectationsCreation, MatchResultStackTrace, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. matcher
  2. ReturnsSyntax
  3. ExpectationsCreation
  4. MatchResultStackTrace
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait ContentMatchers extends LinesContentMatchers with FilesContentMatchers

    Permalink

    The ContentMatchers trait provides matchers to make comparisons between files, sequences,...

  2. class EqualIgnoringSpaceMatcher extends Matcher[Seq[Node]] with XmlMatcherKoMessage

    Permalink

    Matcher for equalIgnoreSpace comparison, ignoring the nodes order

  3. class EqualIgnoringSpaceMatcherOrdered extends Matcher[Seq[Node]] with XmlMatcherKoMessage

    Permalink

    Matcher for equalIgnoreSpace comparison, considering the node order

  4. case class ExpectedParsedResult[+T](t: T) extends Product with Serializable

    Permalink

    This class is only used as a transient holder for the expected parsed value, to overcome overloaded method issues

  5. case class FailTypecheckMatcher(expected: String) extends Matcher[Typechecked] with Product with Serializable

    Permalink
  6. trait FileMatchers extends FileBaseMatchers with FileBeHaveMatchers

    Permalink

    The FileMatchers trait provides matchers which are applicable to files

  7. trait FilesContentMatchers extends FileMatchers with LinesContentMatchers with TraversableMatchers with ExpectationsCreation

    Permalink

    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

  8. case class JsonArray(list: List[Any]) extends JsonType with Product with Serializable

    Permalink
  9. case class JsonBoolean(b: Boolean) extends JsonType with Product with Serializable

    Permalink
  10. case class JsonMap(map: Map[String, Any]) extends JsonType with Product with Serializable

    Permalink
  11. trait JsonMatchers extends JsonBaseMatchers with JsonBaseBeHaveMatchers

    Permalink

    Matchers for Json expressions (entered as strings)

  12. case class JsonNumber(d: Double) extends JsonType with Product with Serializable

    Permalink
  13. trait JsonSelectors extends AnyRef

    Permalink

    Different ways of selecting elements in a Json object

  14. case class JsonString(s: String) extends JsonType with Product with Serializable

    Permalink
  15. sealed trait JsonType extends AnyRef

    Permalink

    abstract JSON types for specs2

  16. trait LinesContentMatchers extends LinesContentBaseMatchers with LinesContentBeHaveMatchers

    Permalink
  17. class MakeMatchers[C <: Context] extends AnyRef

    Permalink
  18. trait MatcherMacros extends AnyRef

    Permalink

    Macro definitions to generate matchers for the members of a type T

  19. trait ParserMatchers extends ParserBaseMatchers with ParserBeHaveMatchers

    Permalink

    Matchers for parser combinators

    Matchers for parser combinators

    When this trait is inherited the parsers variable needs to be defined.

    by @alexey_r

  20. case class PathFunction(node: Node, function: XPathFunctions.XPathFunction, attributes: List[String] = Nil, attributeValues: Map[String, String] = Map(), exactMatch: Boolean = false, textMessage: Option[String] = None, textMatcher: Matcher[String] = AlwaysMatcher[String]()) extends (Seq[Node]) ⇒ Seq[Node] with XPathFunctions with Product with Serializable

    Permalink

    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

  21. trait PathMatchers extends PathBaseMatchers with PathBeHaveMatchers

    Permalink

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

  22. implicit class Returns[T] extends AnyRef

    Permalink
    Definition Classes
    ReturnsSyntax
  23. trait ScalaInterpreterMatchers extends Expectations

    Permalink
  24. class TerminationMatcher[-T] extends Matcher[T]

    Permalink
  25. trait TerminationMatchers extends TerminationBaseMatchers with TerminationNotMatchers

    Permalink

    This trait provides matchers to check if a block of code is terminating or not

  26. trait TypecheckBeHaveMatchers extends AnyRef

    Permalink
  27. class TypecheckMatcher extends Matcher[Typechecked]

    Permalink
  28. trait TypecheckMatchers extends TypecheckBeHaveMatchers

    Permalink

    Matchers for checking if a piece of code compiles or not

  29. trait XPathFunctions extends AnyRef

    Permalink
  30. case class XmlMatcher(functions: Seq[PathFunction]) extends Matcher[Seq[Node]] with Product with Serializable

    Permalink

    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")

  31. trait XmlMatcherKoMessage extends AnyRef

    Permalink
  32. trait XmlMatchers extends XmlBaseMatchers with XmlBeHaveMatchers

    Permalink

    The XmlMatchers trait provides matchers which are applicaborderle to xml nodes

Value Members

  1. object ContentMatchers extends ContentMatchers

    Permalink
  2. object ExpectedParsedResult extends Serializable

    Permalink
  3. object FileMatchers extends FileMatchers

    Permalink
  4. object JsonNull extends JsonType with Product with Serializable

    Permalink
  5. object JsonType

    Permalink
  6. object LinesContentMatchers extends LinesContentMatchers

    Permalink
  7. object MatcherMacros extends MatcherMacros

    Permalink

    Macros implementations

    Macros implementations

    The bulk of the implementation is credited to:

    - @travisbrown for his ["vampire methods"](http://meta.plasm.us/posts/2013/08/31/feeding-our-vampires/) - @retronym for his help on [range positions](https://groups.google.com/forum/#!topic/scala-internals/fmWKw5TDz98) - @xeno_by for his help on macros in general!

  8. object PathMatchers extends PathMatchers

    Permalink
  9. object TerminationMatchers extends TerminationMatchers

    Permalink
  10. object TypecheckMatchers extends TypecheckMatchers

    Permalink
  11. object XmlMatchers extends XmlMatchers

    Permalink
  12. def checkFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  13. def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  14. def checkResultFailure(r: ⇒ Result): Result

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  15. def createExpectable[T](t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  16. def createExpectable[T](t: ⇒ T, alias: (String) ⇒ String): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  17. def createExpectable[T](t: ⇒ T, alias: ⇒ String): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  18. def createExpectable[T](t: ⇒ T): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  19. def createExpectableWithShowAs[T](t: ⇒ T, showAs: ⇒ String): Expectable[T]

    Permalink
    Definition Classes
    ExpectationsCreation
  20. def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  21. def sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  22. def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    MatchResultStackTrace

Inherited from ReturnsSyntax

Inherited from ExpectationsCreation

Inherited from MatchResultStackTrace

Inherited from AnyRef

Inherited from Any

Ungrouped