org.specs2

matcher

package matcher

Visibility
  1. Public
  2. All

Type Members

  1. trait AbstractContainMatchResult [T] extends MatchResult[GenTraversable[T]]

  2. trait AdaptableMatcher [T] extends Matcher[T]

    Inherit this trait to provide a Matcher where both the actual and the expected values can be adapted with a function.

  3. case class AndMatch [T] (m1: MatchResult[T], m2: MatchResult[T]) extends MatchResult[T] with Product with Serializable

  4. case class AndNotMatch [T] (m1: MatchResult[T], m2: MatchResult[T]) extends MatchResult[T] with Product with Serializable

  5. trait AnyBeHaveMatchers extends AnyRef

    This trait allows to write expressions like

  6. trait AnyMatchers extends AnyBaseMatchers with AnyBeHaveMatchers

    This trait provides matchers which are applicable to any type of value

  7. trait ApplicableArbitraries extends AnyRef

    This trait enables some syntactic sugar when it is necessary to pass several arbitrary instances

  8. class BeCloseTo [T] extends Matcher[T]

  9. class BeEqualTo extends BeTypedEqualTo[Any]

    Equality Matcher

  10. class BeLessThan [T] extends Matcher[T]

  11. class BeLessThanOrEqualTo [T] extends Matcher[T]

  12. class BeMatching extends Matcher[String]

    Attributes
    protected[specs2]
  13. class BeNull [T] extends Matcher[T]

  14. class BeTheSameAs [T <: AnyRef] extends Matcher[T]

  15. class BeTrueMatcher extends Matcher[Boolean]

    Matcher for a boolean value which must be true

  16. class BeTypedEqualTo [T] extends AdaptableMatcher[T]

    Typed equality Matcher

  17. class ContainAnyOfMatcher [T] extends Matcher[GenTraversable[T]]

  18. class ContainExactlyOnceMatcher [T] extends Matcher[GenTraversable[T]]

  19. class ContainInOrderMatchResult [T] extends AbstractContainMatchResult[T]

  20. class ContainInOrderMatcher [T] extends Matcher[GenTraversable[T]]

  21. class ContainLikeMatcher [T] extends Matcher[GenTraversable[T]]

  22. class ContainLikeOnlyOnceMatcher [T] extends Matcher[GenTraversable[T]]

  23. class ContainMatchResult [T] extends AbstractContainMatchResult[T]

  24. class ContainMatcher [T] extends Matcher[GenTraversable[T]]

  25. class ContainOnlyInOrderMatchResult [T] extends AbstractContainMatchResult[T]

  26. class ContainOnlyMatchResult [T] extends AbstractContainMatchResult[T]

  27. class ContainOnlyMatcher [T] extends Matcher[GenTraversable[T]]

  28. case class DataTable (titles: Seq[String], rows: Seq[DataTableRow]) extends Product with Serializable

  29. case class DataTableRow (cells: Seq[String], result: Result) extends Product with Serializable

  30. trait DataTables extends AnyRef

    This trait provides implicit definitions and types to create DataTables.

  31. trait EitherMatchers extends EitherBaseMatchers with EitherBeHaveMatchers

    Matchers for the Either datatype

  32. class EqualIgnoringSpaceMatcher extends Matcher[Seq[Node]]

    Matcher for equalIgnoreSpace comparison, ignoring the nodes order

  33. class EqualIgnoringSpaceMatcherOrdered extends Matcher[Seq[Node]]

    Matcher for equalIgnoreSpace comparison, considering the node order

  34. trait EventuallyMatchers extends AnyRef

    This trait adds the possibility to retry a given matcher until it succeeds.

  35. trait ExceptionMatchers extends ExceptionBaseMatchers with ExceptionBeHaveMatchers

    These matchers can be used to check if exceptions are thrown or not

  36. class Expectable [+T] extends AnyRef

    The Expectable class models anything which can be checked by applying a Matcher

  37. trait Expectations extends AnyRef

    This trait provides implicit definitions to transform any value into an Expectable

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

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

  39. trait FileMatchers extends FileBaseMatchers with FileBeHaveMatchers

    The FileMatchers trait provides matchers which are applicable to files

  40. trait FunctionPropertyImplicits extends AnyRef

    This trait adds some syntactic sugar to transform function to properties by appending forAll

  41. class HaveTheSameElementsAs [T] extends Matcher[GenTraversable[T]]

  42. trait JUnitExpectations extends ThrownExpectations

    This trait throws AssertionFailed errors when a match fails.

  43. trait JUnitMustExpectations extends MustThrownExpectations with JUnitExpectations

    This trait can be imported to use MustMatchers in JUnit

  44. trait JUnitMustMatchers extends Matchers with JUnitMustExpectations

    These traits and objects can be used in JUnit

  45. trait JUnitShouldExpectations extends ShouldThrownExpectations with JUnitExpectations

    This trait can be imported to use ShouldMatchers in JUnit

  46. trait JUnitShouldMatchers extends Matchers with JUnitShouldExpectations

  47. trait JsonMatchers extends JsonBaseMatchers with JsonBaseBeHaveMatchers

    Matchers for Json expressions (entered as strings)

  48. trait MapMatchers extends MapBaseMatchers with MapBeHaveMatchers

    Matchers for Maps

  49. case class MatchFailure [T] (okMessage: String, koMessage: String, expectable: Expectable[T], details: Details) extends MatchResult[T] with Product with Serializable

  50. trait MatchResult [+T] extends AnyRef

    Result of a Match.

  51. case class MatchSkip [T] (message: String, expectable: Expectable[T]) extends MatchResult[T] with Product with Serializable

  52. case class MatchSuccess [T] (okMessage: String, koMessage: String, expectable: Expectable[T]) extends MatchResult[T] with Product with Serializable

  53. trait Matcher [-T] extends AnyRef

    The Matcher trait is the base trait for any Matcher.

  54. trait Matchers extends AnyMatchers with TraversableMatchers with MapMatchers with StringMatchers with XmlMatchers with JsonMatchers with BeHaveMatchers with ExceptionMatchers with NumericMatchers with OptionMatchers with EitherMatchers with EventuallyMatchers with FileMatchers with MatchersImplicits

    Trait aggregating all of specs2 matchers

  55. trait MatchersImplicits extends Expectations

    This trait provides implicit definitions from MatchResults and Booleans to Results.

  56. class MustExpectable [T] extends Expectable[T]

    This kind of expectable can be followed by the verb must to apply a matcher:

  57. trait MustExpectations extends Expectations

    This trait provides implicit definitions to transform any value into a MustExpectable

  58. trait MustMatchers extends Matchers with MustExpectations

  59. trait MustThrownExpectations extends ThrownExpectations with MustExpectations

    This trait provides implicit definitions to transform any value into a MustExpectable, throwing exceptions when a match fails

  60. trait MustThrownMatchers extends Matchers with MustThrownExpectations

  61. case class NeutralMatch [T] (m: MatchResult[T]) extends MatchResult[T] with Product with Serializable

  62. class NeutralMatcher [T] extends Matcher[T]

    This special matcher always return a NeutralMatch MatchResult (an implicit Success)

  63. case class NotMatch [T] (m: MatchResult[T]) extends MatchResult[T] with Product with Serializable

  64. class NotMatcher [T] extends Matcher[T]

    This special matcher always return a NotMatch MatchResult.

  65. trait NumericMatchers extends NumericBaseMatchers with NumericBeHaveMatchers

    Matchers for Numerical values

  66. trait OptionMatchers extends OptionBaseMatchers with OptionBeHaveMatchers

    Matchers for Options

  67. class OrMatch [T] extends MatchResult[T]

  68. class OrNotMatch [T] extends MatchResult[T]

  69. case class Parameters (params: Map[Symbol, Int]) extends Product with Serializable

    This class is the base class for the display and set case classes.

  70. trait ParserMatchers extends ParserBaseMatchers with ParserBeHaveMatchers

    Matchers for parser combinators

  71. trait PartialFunctionPropertyImplicits extends AnyRef

    This trait adds some syntactic sugar to transform partial functions to properties by appending forAll

  72. class PathFunction extends (Seq[Node]) ⇒ Seq[Node] with 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

  73. trait PathMatchers extends PathBaseMatchers with PathBeHaveMatchers

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

  74. trait ResultMatchers extends ResultBaseMatchers with ResultBeHaveMatchers

    Matchers for Results

  75. trait ResultPropertyImplicits extends AnyRef

  76. trait ScalaCheckFunctions extends AnyRef

    This trait is used to facilitate testing by mocking ScalaCheck functionalities

  77. trait ScalaCheckMatchers extends ConsoleOutput with ScalaCheckFunctions with ScalaCheckParameters with FunctionPropertyImplicits with ResultPropertyImplicits with ApplicableArbitraries

    The ScalaCheckMatchers trait provides matchers which allow to assess properties multiple times with generated data.

  78. trait ScalaCheckParameters extends AnyRef

    This trait provides generation parameters to use with the ScalaCheckMatchers

  79. trait ScalaInterpreterMatchers extends Expectations

  80. trait ScalazMatchers extends ScalaCheckMatchers with Expectations

    This trait provides matchers for some Scalaz (http://code.

  81. class ShouldExpectable [T] extends Expectable[T]

    This kind of expectable can be followed by the verb should to apply a matcher:

  82. trait ShouldExpectations extends Expectations

    This trait provides implicit definitions to transform any value into a ShouldExpectable

  83. trait ShouldMatchers extends Matchers with ShouldExpectations

  84. trait ShouldThrownExpectations extends ThrownExpectations with ShouldExpectations

    This trait provides implicit definitions to transform any value into a ShouldExpectable, throwing exceptions when a match fails

  85. trait ShouldThrownMatchers extends Matchers with ShouldThrownExpectations

  86. class SizedMatcher [T] extends Matcher[T]

  87. trait StandardMatchResults extends Expectations

    This trait can be used in conjonction with Pattern matchers:

  88. trait StringMatchers extends StringBaseMatchers with StringBeHaveMatchers

    The StringMatchers trait provides matchers which are applicable to String objects

  89. trait ThrownExpectations extends Expectations

    Thrown expectations will throw a FailureException if a match fails

  90. trait ThrownMessages extends AnyRef

    This trait can be used to integrate failures and skip messages into specs2

  91. trait TraversableMatchers extends TraversableBaseMatchers with TraversableBeHaveMatchers

    Matchers for traversables

  92. trait XPathFunctions extends AnyRef

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

    The XmlMatcher class matches an xml Node, or a list of Nodes against a list of search functions, which can either search for:

  94. trait XmlMatchers extends XmlBaseMatchers with XmlBeHaveMatchers

    The XmlMatchers trait provides matchers which are applicable to xml nodes

Value Members

  1. object AnyMatchers extends AnyMatchers

  2. object DataTable extends Serializable

  3. object DataTableRow extends Serializable

  4. object EitherMatchers extends EitherMatchers

  5. object EventuallyMatchers extends EventuallyMatchers

  6. object Expectable extends AnyRef

    Factory methods for creating Expectables

  7. object ExpectedParsedResult extends Serializable

  8. object FileMatchers extends FileMatchers

  9. object JUnitMustExpectations extends JUnitMustExpectations

  10. object JUnitMustMatchers extends JUnitMustMatchers

  11. object JUnitShouldExpectations extends JUnitShouldExpectations

  12. object JUnitShouldMatchers extends JUnitShouldMatchers

  13. object MapMatchers extends MapMatchers

  14. object Matcher extends AnyRef

  15. object Matchers extends Matchers

  16. object MustExpectable extends AnyRef

  17. object MustExpectations extends MustExpectations

  18. object MustMatchers extends MustMatchers

  19. object MustThrownExpectations extends MustThrownExpectations

  20. object MustThrownMatchers extends MustThrownMatchers

  21. object NumericMatchers extends NumericMatchers

  22. object OptionMatchers extends OptionMatchers

  23. object PartialFunctionPropertyImplicits extends PartialFunctionPropertyImplicits

  24. object PathMatchers extends PathMatchers

  25. object ResultMatchers extends ResultMatchers

  26. object ScalaCheckMatchers extends ScalaCheckMatchers

  27. object ShouldExpectable extends AnyRef

  28. object ShouldExpectations extends ShouldExpectations

  29. object ShouldMatchers extends ShouldMatchers

  30. object ShouldThrownExpectations extends ShouldThrownExpectations

  31. object ShouldThrownMatchers extends ShouldThrownMatchers

  32. object StringMatchers extends StringMatchers

  33. object TraversableMatchers extends TraversableMatchers

  34. object XmlMatchers extends XmlMatchers