org.specs2

matcher

package matcher

Visibility
  1. Public
  2. All

Type Members

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

  2. abstract class AbstractContainMatcher[T] extends Matcher[GenTraversableOnce[T]]

  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] 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[org.specs2]
  15. class BeMatchingPattern extends BeMatching

    Attributes
    protected[org.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. case class BetweenMatcher[T](t1: T, t2: T, includeStart: Boolean = true, includeEnd: Boolean = true)(implicit evidence$42: (T) ⇒ Ordered[T]) extends Matcher[T] with Product with Serializable

  22. trait CanBeEqual extends AnyRef

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

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

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

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

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

  27. class ContainLikeMatcher[T] extends Matcher[GenTraversableOnce[T]]

  28. class ContainLikeOnlyOnceMatcher[T] extends Matcher[GenTraversableOnce[T]]

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

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

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

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

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

  34. trait ContentMatchers extends ContentBaseMatchers with ContentBeHaveMatchers

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

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

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

  37. trait DataTables extends Expectations

    This trait provides implicit definitions and types to create DataTables.

  38. trait DependencyBeHaveMatchers extends AnyRef

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

  40. trait EitherMatchers extends EitherBaseMatchers with EitherBeHaveMatchers

    Matchers for the Either datatype

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

    Matcher for equalIgnoreSpace comparison, ignoring the nodes order

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

    Matcher for equalIgnoreSpace comparison, considering the node order

  43. trait EventuallyMatchers extends EventuallyResults

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

  44. trait ExceptionMatchers extends ExceptionBaseMatchers with ExceptionBeHaveMatchers

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

  45. class Expectable[+T] extends AnyRef

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

  46. trait Expectations extends CanBeEqual

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

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

  48. trait FileMatchers extends FileBaseMatchers with FileBeHaveMatchers

    The FileMatchers trait provides matchers which are applicable to files

  49. trait FunctionPropertyImplicits extends AnyRef

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

  50. case class HaveAllElementsLike[T, U](like: PartialFunction[T, MatchResult[U]]) extends Matcher[GenTraversableOnce[T]] with Product with Serializable

  51. case class HaveOneElementLike[T, U](like: PartialFunction[T, MatchResult[U]]) extends Matcher[GenTraversableOnce[T]] with Product with Serializable

  52. 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)

  53. trait JUnitExpectations extends ThrownExpectations

    This trait throws AssertionFailed errors when a match fails.

  54. trait JUnitMustExpectations extends MustThrownExpectations with JUnitExpectations

    This trait can be imported to use MustMatchers in JUnit

  55. trait JUnitMustMatchers extends Matchers with JUnitMustExpectations

    These traits and objects can be used in JUnit

  56. trait JUnitShouldExpectations extends ShouldThrownExpectations with JUnitExpectations

    This trait can be imported to use ShouldMatchers in JUnit

  57. trait JUnitShouldMatchers extends Matchers with JUnitShouldExpectations

  58. trait JsonMatchers extends JsonBaseMatchers with JsonBaseBeHaveMatchers

    Matchers for Json expressions (entered as strings)

  59. trait MapMatchers extends MapBaseMatchers with MapBeHaveMatchers

    Matchers for Maps

  60. case class MatchFailure[T] extends MatchResult[T] with Product with Serializable

  61. class MatchFailureException[T] extends FailureException with MatchResultException[T]

    this class allows to throw a match failure result in an Exception

  62. case class MatchPending[T] extends MatchResult[T] with Product with Serializable

  63. class MatchPendingException[T] extends PendingException with MatchResultException[T]

    this class allows to throw a pending result in an Exception

  64. trait MatchResult[+T] extends ResultLike

    Result of a Match.

  65. trait MatchResultException[T] extends AnyRef

  66. case class MatchSkip[T] extends MatchResult[T] with Product with Serializable

  67. class MatchSkipException[T] extends SkipException with MatchResultException[T]

    this class allows to throw a skipped match result in an Exception

  68. case class MatchSuccess[T] extends MatchResult[T] with Product with Serializable

  69. trait Matcher[-T] extends AnyRef

    The Matcher trait is the base trait for any Matcher.

  70. 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 ContentMatchers with MatchersImplicits

    Trait aggregating all of specs2 matchers

  71. trait MatchersImplicits extends Expectations with MatchResultCombinators with MatchResultImplicits

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

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

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

  73. trait MustExpectations extends Expectations

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

  74. trait MustMatchers extends Matchers with MustExpectations

  75. trait MustThrownExpectations extends ThrownExpectations with MustExpectations

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

  76. trait MustThrownMatchers extends Matchers with MustThrownExpectations

  77. case class NeutralMatch[T] extends MatchResult[T] with Product with Serializable

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

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

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

    This matcher never matches any value of type T

  80. trait NoCanBeEqual extends CanBeEqual

    This trait can be used to suppress the CanBeEqual implicits

  81. trait NoMustExpectations extends MustExpectations

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

  82. trait NoShouldExpectations extends ShouldExpectations

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

  83. trait NoThrownExpectations extends Expectations

    This trait can be used to cancel the effect of thrown expectations.

  84. case class NotMatch[T] extends MatchResult[T] with Product with Serializable

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

    This special matcher always return a NotMatch MatchResult.

  86. trait NumericMatchers extends NumericBaseMatchers with NumericBeHaveMatchers

    Matchers for Numerical values

  87. trait OptionMatchers extends OptionBaseMatchers with OptionBeHaveMatchers

    Matchers for Options

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

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

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

  91. case class Parameters(params: Map[Symbol, Int] = ..., rng: Random = org.scalacheck.util.StdRand) extends Product with Serializable

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

  92. trait ParserMatchers extends ParserBaseMatchers with ParserBeHaveMatchers

    Matchers for parser combinators

  93. trait PartialFunctionPropertyImplicits extends AnyRef

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

  94. case class PathFunction(node: Node, function: (Node, String) ⇒ NodeSeq, attributes: List[String] = immutable.this.Nil, attributeValues: Map[String, String] = ..., exactMatch: Boolean = false, textMessage: Option[String] = scala.None, textMatcher: Matcher[String] = AlwaysMatcher.apply[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

  95. trait PathMatchers extends PathBaseMatchers with PathBeHaveMatchers

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

  96. trait ResultMatchers extends ResultBaseMatchers with ResultBeHaveMatchers

    Matchers for Results

  97. trait ResultPropertyImplicits extends AnyRef

  98. trait ScalaCheckFunctions extends AnyRef

    This trait is used to facilitate testing by mocking ScalaCheck functionalities

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

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

  100. trait ScalaCheckParameters extends AnyRef

    This trait provides generation parameters to use with the ScalaCheckMatchers

  101. trait ScalaInterpreterMatchers extends Expectations

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

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

  103. trait ShouldExpectations extends Expectations

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

  104. trait ShouldMatchers extends Matchers with ShouldExpectations

  105. trait ShouldThrownExpectations extends ThrownExpectations with ShouldExpectations

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

  106. trait ShouldThrownMatchers extends Matchers with ShouldThrownExpectations

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

  108. trait StandardMatchResults extends Expectations

    This trait can be used in conjonction with Pattern matchers:

  109. trait StoredExpectations extends Expectations

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

  110. trait StringMatchers extends StringBaseMatchers with StringBeHaveMatchers

    The StringMatchers trait provides matchers which are applicable to String objects

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

  112. trait TerminationMatchers extends TerminationBaseMatchers with TerminationNotMatchers

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

  113. trait ThrownExpectations extends Expectations

    Thrown expectations will throw a FailureException if a match fails

  114. trait ThrownMessages extends AnyRef

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

  115. trait TraversableMatchers extends TraversableBaseMatchers with TraversableBeHaveMatchers

    Matchers for traversables

  116. trait XPathFunctions extends AnyRef

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

  118. 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 ContentMatchers extends ContentMatchers

  3. object DataTable extends Serializable

  4. object DataTableRow extends Serializable

  5. object EitherMatchers extends EitherMatchers

  6. object EventuallyMatchers extends EventuallyMatchers

  7. object Expectable

    Factory methods for creating Expectables

  8. object ExpectedParsedResult extends Serializable

  9. object FileMatchers extends FileMatchers

  10. object JUnitMustExpectations extends JUnitMustExpectations

  11. object JUnitMustMatchers extends JUnitMustMatchers

  12. object JUnitShouldExpectations extends JUnitShouldExpectations

  13. object JUnitShouldMatchers extends JUnitShouldMatchers

  14. object MapMatchers extends MapMatchers

  15. object MatchFailureException extends Serializable

  16. object MatchPendingException extends Serializable

  17. object MatchResultCombinators extends MatchResultCombinators

  18. object MatchResultExecution extends MatchResultExecution

  19. object MatchResultLogicalCombinators extends MatchResultLogicalCombinators

  20. object MatchSkipException extends Serializable

  21. object Matcher

  22. object Matchers extends Matchers

  23. object MustExpectable

  24. object MustExpectations extends MustExpectations

  25. object MustMatchers extends MustMatchers

  26. object MustThrownExpectations extends MustThrownExpectations

  27. object MustThrownMatchers extends MustThrownMatchers

  28. object NumericMatchers extends NumericMatchers

  29. object OptionMatchers extends OptionMatchers

  30. object PartialFunctionPropertyImplicits extends PartialFunctionPropertyImplicits

  31. object PathMatchers extends PathMatchers

  32. object ResultMatchers extends ResultMatchers

  33. object ScalaCheckMatchers extends ScalaCheckMatchers

  34. object ShouldExpectable

  35. object ShouldExpectations extends ShouldExpectations

  36. object ShouldMatchers extends ShouldMatchers

  37. object ShouldThrownExpectations extends ShouldThrownExpectations

  38. object ShouldThrownMatchers extends ShouldThrownMatchers

  39. object StandardMatchResults extends StandardMatchResults

  40. object StringMatchers extends StringMatchers

  41. object TraversableMatchers extends TraversableMatchers

  42. object XmlMatchers extends XmlMatchers

Ungrouped