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. class AndMatch [T] extends MatchResult[T]

  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 Expectations

    This trait provides implicit definitions and types to create DataTables.

  31. trait DependencyBeHaveMatchers extends AnyRef

  32. trait DependencyMatchers extends DependencyBaseMatchers with DependencyBeHaveMatchers

    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.

  33. trait EitherMatchers extends EitherBaseMatchers with EitherBeHaveMatchers

    Matchers for the Either datatype

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

    Matcher for equalIgnoreSpace comparison, ignoring the nodes order

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

    Matcher for equalIgnoreSpace comparison, considering the node order

  36. trait EventuallyMatchers extends AnyRef

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

  37. trait ExceptionMatchers extends ExceptionBaseMatchers with ExceptionBeHaveMatchers

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

  38. class Expectable [+T] extends AnyRef

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

  39. trait Expectations extends AnyRef

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

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

  41. trait FileMatchers extends FileBaseMatchers with FileBeHaveMatchers

    The FileMatchers trait provides matchers which are applicable to files

  42. trait FunctionPropertyImplicits extends AnyRef

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

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

  44. trait JUnitExpectations extends ThrownExpectations

    This trait throws AssertionFailed errors when a match fails.

  45. trait JUnitMustExpectations extends MustThrownExpectations with JUnitExpectations

    This trait can be imported to use MustMatchers in JUnit

  46. trait JUnitMustMatchers extends Matchers with JUnitMustExpectations

    These traits and objects can be used in JUnit

  47. trait JUnitShouldExpectations extends ShouldThrownExpectations with JUnitExpectations

    This trait can be imported to use ShouldMatchers in JUnit

  48. trait JUnitShouldMatchers extends Matchers with JUnitShouldExpectations

  49. trait JsonMatchers extends JsonBaseMatchers with JsonBaseBeHaveMatchers

    Matchers for Json expressions (entered as strings)

  50. trait MapMatchers extends MapBaseMatchers with MapBeHaveMatchers

    Matchers for Maps

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

  52. trait MatchResult [+T] extends ResultLike

    Result of a Match.

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

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

  55. trait Matcher [-T] extends AnyRef

    The Matcher trait is the base trait for any Matcher.

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

  57. trait MatchersImplicits extends Expectations

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

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

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

  59. trait MustExpectations extends Expectations

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

  60. trait MustMatchers extends Matchers with MustExpectations

  61. trait MustThrownExpectations extends ThrownExpectations with MustExpectations

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

  62. trait MustThrownMatchers extends Matchers with MustThrownExpectations

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

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

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

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

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

    This special matcher always return a NotMatch MatchResult.

  67. trait NumericMatchers extends NumericBaseMatchers with NumericBeHaveMatchers

    Matchers for Numerical values

  68. trait OptionMatchers extends OptionBaseMatchers with OptionBeHaveMatchers

    Matchers for Options

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

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

  71. class OrderingMatcher [T] extends Matcher[Seq[T]]

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

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

  73. trait ParserMatchers extends ParserBaseMatchers with ParserBeHaveMatchers

    Matchers for parser combinators

  74. trait PartialFunctionPropertyImplicits extends AnyRef

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

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

  76. trait PathMatchers extends PathBaseMatchers with PathBeHaveMatchers

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

  77. trait ResultMatchers extends ResultBaseMatchers with ResultBeHaveMatchers

    Matchers for Results

  78. trait ResultPropertyImplicits extends AnyRef

  79. trait ScalaCheckFunctions extends AnyRef

    This trait is used to facilitate testing by mocking ScalaCheck functionalities

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

  81. trait ScalaCheckParameters extends AnyRef

    This trait provides generation parameters to use with the ScalaCheckMatchers

  82. trait ScalaInterpreterMatchers extends Expectations

  83. trait ScalazMatchers extends ScalaCheckMatchers with Expectations

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

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

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

  85. trait ShouldExpectations extends Expectations

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

  86. trait ShouldMatchers extends Matchers with ShouldExpectations

  87. trait ShouldThrownExpectations extends ThrownExpectations with ShouldExpectations

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

  88. trait ShouldThrownMatchers extends Matchers with ShouldThrownExpectations

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

  90. trait StandardMatchResults extends Expectations

    This trait can be used in conjonction with Pattern matchers:

  91. trait StringMatchers extends StringBaseMatchers with StringBeHaveMatchers

    The StringMatchers trait provides matchers which are applicable to String objects

  92. class TerminationMatcher [-T] extends Matcher[T]

  93. trait TerminationMatchers extends TerminationBaseMatchers with TerminationNotMatchers

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

  94. trait ThrownExpectations extends Expectations

    Thrown expectations will throw a FailureException if a match fails

  95. trait ThrownMessages extends AnyRef

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

  96. trait TraversableMatchers extends TraversableBaseMatchers with TraversableBeHaveMatchers

    Matchers for traversables

  97. trait XPathFunctions extends AnyRef

  98. 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:

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