org.specs2

matcher

package matcher

Visibility
  1. Public
  2. All

Type Members

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

  2. class AbstractContainMatcher [T] extends Matcher[GenTraversable[T]]

    Attributes
    abstract
  3. 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.

  4. case class AlwaysMatcher [T] () extends Matcher[T] with Product with Serializable

    This matcher always matches any value of type T

  5. class AndMatch [T] extends MatchResult[T]

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

  7. trait AnyBeHaveMatchers extends AnyRef

    This trait allows to write expressions like

  8. trait AnyMatchers extends AnyBaseMatchers with AnyBeHaveMatchers

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

  9. trait ApplicableArbitraries extends AnyRef

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

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

  11. class BeEqualTo extends BeTypedEqualTo[Any]

    Equality Matcher

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

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

  14. class BeMatching extends Matcher[String]

    Attributes
    protected[specs2]
  15. class BeMatchingPattern extends BeMatching

    Attributes
    protected[specs2]
  16. class BeMatchingRegex extends BeMatching

  17. class BeNull [T] extends Matcher[T]

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

  19. class BeTrueMatcher extends Matcher[Boolean]

    Matcher for a boolean value which must be true

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

    Typed equality Matcher

  21. trait CanBeEqual extends AnyRef

    This trait adds some implicits to create expectations with the === sign

  22. class ContainAnyOfMatcher [T] extends AbstractContainMatcher[T]

  23. class ContainExactlyOnceMatcher [T] extends AbstractContainMatcher[T]

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

  25. class ContainInOrderMatcher [T] extends AbstractContainMatcher[T]

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

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

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

  29. class ContainMatcher [T] extends AbstractContainMatcher[T]

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

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

  32. class ContainOnlyMatcher [T] extends AbstractContainMatcher[T]

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

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

  35. trait DataTables extends Expectations

    This trait provides implicit definitions and types to create DataTables.

  36. trait DependencyBeHaveMatchers extends AnyRef

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

  38. trait EitherMatchers extends EitherBaseMatchers with EitherBeHaveMatchers

    Matchers for the Either datatype

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

    Matcher for equalIgnoreSpace comparison, ignoring the nodes order

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

    Matcher for equalIgnoreSpace comparison, considering the node order

  41. trait EventuallyMatchers extends AnyRef

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

  42. trait ExceptionMatchers extends ExceptionBaseMatchers with ExceptionBeHaveMatchers

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

  43. class Expectable [+T] extends AnyRef

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

  44. trait Expectations extends CanBeEqual

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

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

  46. trait FileMatchers extends FileBaseMatchers with FileBeHaveMatchers

    The FileMatchers trait provides matchers which are applicable to files

  47. trait FunctionPropertyImplicits extends AnyRef

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

  48. class HaveTheSameElementsAs [T] extends AbstractContainMatcher[T]

    This matcher checks if a traversable has the same elements as another one (that is, recursively, in any order)

  49. trait JUnitExpectations extends ThrownExpectations

    This trait throws AssertionFailed errors when a match fails.

  50. trait JUnitMustExpectations extends MustThrownExpectations with JUnitExpectations

    This trait can be imported to use MustMatchers in JUnit

  51. trait JUnitMustMatchers extends Matchers with JUnitMustExpectations

    These traits and objects can be used in JUnit

  52. trait JUnitShouldExpectations extends ShouldThrownExpectations with JUnitExpectations

    This trait can be imported to use ShouldMatchers in JUnit

  53. trait JUnitShouldMatchers extends Matchers with JUnitShouldExpectations

  54. trait JsonMatchers extends JsonBaseMatchers with JsonBaseBeHaveMatchers

    Matchers for Json expressions (entered as strings)

  55. trait MapMatchers extends MapBaseMatchers with MapBeHaveMatchers

    Matchers for Maps

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

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

  58. trait MatchResult [+T] extends ResultLike

    Result of a Match.

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

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

  61. trait Matcher [-T] extends AnyRef

    The Matcher trait is the base trait for any Matcher.

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

  63. trait MatchersImplicits extends Expectations

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

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

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

  65. trait MustExpectations extends Expectations

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

  66. trait MustMatchers extends Matchers with MustExpectations

  67. trait MustThrownExpectations extends ThrownExpectations with MustExpectations

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

  68. trait MustThrownMatchers extends Matchers with MustThrownExpectations

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

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

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

  71. case class NeverMatcher [T] () extends Matcher[T] with Product with Serializable

    This matcher never matches any value of type T

  72. trait NoCanBeEqual extends CanBeEqual

    This trait can be used to suppress the CanBeEqual implicits

  73. trait NoMustExpectations extends MustExpectations

    This trait can be used to remove aka and must methods on any value

  74. trait NoShouldExpectations extends ShouldExpectations

    This trait can be used to remove aka and should methods on any value

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

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

    This special matcher always return a NotMatch MatchResult.

  77. trait NumericMatchers extends NumericBaseMatchers with NumericBeHaveMatchers

    Matchers for Numerical values

  78. trait OptionMatchers extends OptionBaseMatchers with OptionBeHaveMatchers

    Matchers for Options

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

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

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

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

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

  83. trait ParserMatchers extends ParserBaseMatchers with ParserBeHaveMatchers

    Matchers for parser combinators

  84. trait PartialFunctionPropertyImplicits extends AnyRef

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

  85. 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] with XPathFunctions with Product with Serializable

    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

  86. trait PathMatchers extends PathBaseMatchers with PathBeHaveMatchers

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

  87. trait ResultMatchers extends ResultBaseMatchers with ResultBeHaveMatchers

    Matchers for Results

  88. trait ResultPropertyImplicits extends AnyRef

  89. trait ScalaCheckFunctions extends AnyRef

    This trait is used to facilitate testing by mocking ScalaCheck functionalities

  90. trait ScalaCheckMatchers extends ConsoleOutput with ScalaCheckFunctions with ScalaCheckParameters with FunctionPropertyImplicits with ResultPropertyImplicits with ApplicableArbitraries with Expectations

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

  91. trait ScalaCheckParameters extends AnyRef

    This trait provides generation parameters to use with the ScalaCheckMatchers

  92. trait ScalaInterpreterMatchers extends Expectations

  93. trait ScalazMatchers extends ScalaCheckMatchers with Expectations

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

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

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

  95. trait ShouldExpectations extends Expectations

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

  96. trait ShouldMatchers extends Matchers with ShouldExpectations

  97. trait ShouldThrownExpectations extends ThrownExpectations with ShouldExpectations

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

  98. trait ShouldThrownMatchers extends Matchers with ShouldThrownExpectations

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

  100. trait StandardMatchResults extends Expectations

    This trait can be used in conjonction with Pattern matchers:

  101. trait StoredExpectations extends Expectations

    This trait evaluates expectations and stores them in a local variable for further usage

  102. trait StringMatchers extends StringBaseMatchers with StringBeHaveMatchers

    The StringMatchers trait provides matchers which are applicable to String objects

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

  104. trait TerminationMatchers extends TerminationBaseMatchers with TerminationNotMatchers

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

  105. trait ThrownExpectations extends Expectations

    Thrown expectations will throw a FailureException if a match fails

  106. trait ThrownMessages extends AnyRef

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

  107. trait TraversableMatchers extends TraversableBaseMatchers with TraversableBeHaveMatchers

    Matchers for traversables

  108. trait XPathFunctions extends AnyRef

  109. case class XmlMatcher (functions: Seq[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:

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