org.specs2

matcher

package matcher

Visibility
  1. Public
  2. All

Type Members

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

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

    This matcher always matches any value of type T

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

  4. class AndNotMatch[T] extends MatchResult[T]

  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. class BeCloseTo[T] extends Matcher[T]

  8. class BeEqualTo extends BeTypedEqualTo[Any]

    Equality Matcher

  9. case class BeEqualTypedValueCheck[T](expected: T) extends ValueCheck[T] with Product with Serializable

    ValueCheck for a typed expected value.

  10. case class BeEqualValueCheck[T](expected: Any) extends ValueCheck[T] with Product with Serializable

    ValueCheck for an untyped expected value.

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

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

  13. class BeMatching extends Matcher[String]

    Attributes
    protected[org.specs2]
  14. class BeMatchingPattern extends BeMatching

    Attributes
    protected[org.specs2]
  15. class BeMatchingRegex extends BeMatching

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

  17. case class BeOneOf[T](t: Seq[T]) extends Matcher[T] with Product with Serializable

  18. class BeSignificantlyCloseTo[T] extends Matcher[T]

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

  20. class BeTrueMatcher extends Matcher[Boolean]

    Matcher for a boolean value which must be true

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

    Typed equality Matcher

  22. case class BetweenMatcher[T](t1: T, t2: T, includeStart: Boolean = true, includeEnd: Boolean = true)(implicit evidence$49: (T) ⇒ Ordered[T]) extends Matcher[T] with Product with Serializable

  23. trait CanBeEqual extends AnyRef

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

  24. trait ConcurrentExecutionContext extends AnyRef

    Specification of the execution context to be used for executing futures This can be overridden to pass in your own execution context

  25. case class ContainWithResult[T](check: ValueCheck[T], timesMin: Option[Times] = ..., timesMax: Option[Times] = scala.None, checkAll: Boolean = true) extends Matcher[GenTraversableOnce[T]] with Product with Serializable

  26. case class ContainWithResultSeq[T](checks: Seq[ValueCheck[T]], containsAtLeast: Boolean = true, containsAtMost: Boolean = false, eachCheck: Boolean = false, checkOrder: Boolean = false, negate: Boolean = false) extends Matcher[GenTraversableOnce[T]] with Product with Serializable

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

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

  29. trait DataTables extends Expectations

    This trait provides implicit definitions and types to create DataTables.

  30. case class Delta[S](n: S, delta: S) extends Product with Serializable

    class representing a numeric range

  31. trait DisjunctionMatchers extends AnyRef

    Matchers for the \/ datatype

  32. trait EitherMatchers extends EitherBaseMatchers with EitherBeHaveMatchers

    Matchers for the Either datatype

  33. trait EventuallyMatchers extends EventuallyResults

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

  34. trait ExceptionMatchers extends ExceptionBaseMatchers with ExceptionBeHaveMatchers

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

  35. class Expectable[+T] extends AnyRef

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

  36. trait Expectations extends CanBeEqual

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

  37. trait ExpectationsDescription extends Sentences with Expectations

  38. trait FutureMatchers extends Expectations with ConcurrentExecutionContext

    This trait is for transforming matchers of values to matchers of Futures

  39. case class LeftCheckedMatcher[T](check: ValueCheck[T]) extends OptionLikeCheckedMatcher[[a]Either[a, Any], T, T] with Product with Serializable

  40. case class LeftDisjunctionCheckedMatcher[T](check: ValueCheck[T]) extends OptionLikeCheckedMatcher[[a]\/[a, _], T, T] with Product with Serializable

  41. case class LeftDisjunctionMatcher[T]() extends OptionLikeMatcher[[a]\/[a, _], T, T] with Product with Serializable

  42. case class LeftMatcher[T]() extends OptionLikeMatcher[[a]Either[a, Any], T, T] with Product with Serializable

  43. trait MapMatchers extends MapBaseMatchers with MapBeHaveMatchers

    Matchers for Maps

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

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

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

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

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

    this class allows to throw a pending result in an Exception

  48. trait MatchResult[+T] extends ResultLike

    Result of a Match.

  49. trait MatchResultException[T] extends AnyRef

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

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

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

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

    The signature of this class constructor is unusual, with a useless implicit parameter.

  53. trait Matcher[-T] extends AnyRef

    The Matcher trait is the base trait for any Matcher.

  54. trait MatcherZipOperators extends Expectations with ValueChecks

    This trait provides 'zip' operators to create matchers on tuples based on "zipped" matchers on fields

  55. trait MatcherZipOperatorsCodeGeneration extends AnyRef

    Generation code for the MatcherZipOperators trait

  56. trait Matchers extends AnyMatchers with BeHaveMatchers with TraversableMatchers with MapMatchers with StringMatchers with ExceptionMatchers with NumericMatchers with OptionMatchers with EitherMatchers with TryMatchers with EventuallyMatchers with FutureMatchers with MatchersImplicits with LanguageFeatures

    Trait aggregating the most common specs2 matchers

  57. trait MatchersImplicits extends Expectations with MatchResultCombinators with MatcherZipOperators with MatchResultImplicits with ExpectationsDescription

    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] 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 NeverMatcher[T]() extends Matcher[T] with Product with Serializable

    This matcher never matches any value of type T

  66. trait NoCanBeEqual extends CanBeEqual

    This trait can be used to suppress the CanBeEqual implicits

  67. trait NoConcurrentExecutionContext extends ConcurrentExecutionContext

    stack this trait to remove the implicit execution context used to evaluate features

  68. trait NoExpectationsDescription extends ExpectationsDescription

  69. trait NoMatcherZipOperatorsImplicits extends MatcherZipOperators

    This trait can be mixed in to remove the implicit definitions for zipping matchers

  70. trait NoMatcherZipOperatorsImplicitsCodeGeneration extends AnyRef

    code generation for the NoMatcherZipOperatorsImplicits trait

  71. trait NoMustExpectations extends MustExpectations

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

  72. trait NoShouldExpectations extends ShouldExpectations

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

  73. trait NoThrownExpectations extends Expectations

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

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

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

    This special matcher always return a NotMatch MatchResult.

  76. trait NumericMatchers extends NumericBaseMatchers with NumericBeHaveMatchers

    Matchers for Numerical values

  77. class OptionLikeCheckedMatcher[F[_], T, U] extends Matcher[F[T]]

  78. class OptionLikeMatcher[F[_], T, U] extends Matcher[F[T]]

  79. trait OptionMatchers extends OptionBaseMatchers with OptionBeHaveMatchers

    Matchers for Options

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

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

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

  83. trait ResultMatchers extends ResultBaseMatchers with ResultBeHaveMatchers

    Matchers for Results

  84. case class RightCheckedMatcher[T](check: ValueCheck[T]) extends OptionLikeCheckedMatcher[[a]Either[Any, a], T, T] with Product with Serializable

  85. case class RightDisjunctionCheckedMatcher[T](check: ValueCheck[T]) extends OptionLikeCheckedMatcher[[a]\/[_, a], T, T] with Product with Serializable

  86. case class RightDisjunctionMatcher[T]() extends OptionLikeMatcher[[a]\/[_, a], T, T] with Product with Serializable

  87. case class RightMatcher[T]() extends OptionLikeMatcher[[a]Either[Any, a], T, T] with Product with Serializable

  88. trait Scope extends AnyRef

    This trait represents any Scope that is used to enclose expectations which might be thrown

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

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

  90. trait ShouldExpectations extends Expectations

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

  91. trait ShouldMatchers extends Matchers with ShouldExpectations

  92. trait ShouldThrownExpectations extends ThrownExpectations with ShouldExpectations

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

  93. trait ShouldThrownMatchers extends Matchers with ShouldThrownExpectations

  94. case class SignificantFigures(number: Int) extends Product with Serializable

  95. case class SignificantTarget[T](target: T, significantFigures: SignificantFigures)(implicit evidence$48: Numeric[T]) extends Product with Serializable

  96. class SizedCheckedMatcher[T] extends Matcher[T]

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

  98. case class SomeCheckedMatcher[T](check: ValueCheck[T]) extends OptionLikeCheckedMatcher[Option, T, T] with Product with Serializable

  99. case class SomeMatcher[T]() extends OptionLikeMatcher[Option, T, T] with Product with Serializable

  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. trait ThrownExpectations extends Expectations with StandardResults with StandardMatchResults

    Thrown expectations will throw a FailureException if a match fails

  104. trait ThrownMessages extends AnyRef

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

  105. trait TraversableMatchers extends TraversableBaseMatchers with NumberOfTimes with TraversableBeHaveMatchers with LazyParameters

    Matchers for traversables

  106. case class TryFailureCheckedMatcher[T](check: ValueCheck[Throwable]) extends OptionLikeCheckedMatcher[Try, T, Throwable] with Product with Serializable

  107. case class TryFailureMatcher[T]() extends OptionLikeMatcher[Try, T, Throwable] with Product with Serializable

  108. trait TryMatchers extends TryBaseMatchers with TryBeHaveMatchers

    Matchers for util.

  109. case class TrySuccessCheckedMatcher[T](check: ValueCheck[T]) extends OptionLikeCheckedMatcher[Try, T, T] with Product with Serializable

  110. case class TrySuccessMatcher[T]() extends OptionLikeMatcher[Try, T, T] with Product with Serializable

  111. trait ValueCheck[T] extends AnyRef

    Common interface for checks of a value of type T:

  112. trait ValueChecks extends ValueChecksLowImplicits

    implicit conversions used to create ValueChecks

  113. trait ValueChecksLowImplicits extends AnyRef

Value Members

  1. object AnyMatchers extends AnyMatchers

  2. object BeMatching

  3. object DataTable extends Serializable

  4. object DataTableRow extends Serializable

  5. object DisjunctionMatchers extends DisjunctionMatchers

  6. object EitherMatchers extends EitherMatchers

  7. object EventuallyMatchers extends EventuallyMatchers

  8. object ExceptionMatchers extends ExceptionMatchers

  9. object Expectable

    Factory methods for creating Expectables

  10. object FutureMatchers extends FutureMatchers

  11. object MapMatchers extends MapMatchers

  12. object MatchFailure extends Serializable

  13. object MatchFailureException extends Serializable

  14. object MatchPendingException extends Serializable

  15. object MatchResultCombinators extends MatchResultCombinators

  16. object MatchResultLogicalCombinators extends MatchResultLogicalCombinators

  17. object MatchSkipException extends Serializable

  18. object MatchSuccess extends Serializable

  19. object Matcher

  20. object Matchers extends Matchers

  21. object MustExpectable

  22. object MustExpectations extends MustExpectations

  23. object MustMatchers extends MustMatchers

  24. object MustThrownExpectations extends MustThrownExpectations

  25. object MustThrownMatchers extends MustThrownMatchers

  26. object NumericMatchers extends NumericMatchers

  27. object OptionMatchers extends OptionMatchers

  28. object ResultMatchers extends ResultMatchers

  29. object Scope

  30. object ShouldExpectable

  31. object ShouldExpectations extends ShouldExpectations

  32. object ShouldMatchers extends ShouldMatchers

  33. object ShouldThrownExpectations extends ShouldThrownExpectations

  34. object ShouldThrownMatchers extends ShouldThrownMatchers

  35. object StandardMatchResults extends StandardMatchResults

  36. object StringMatchers extends StringMatchers

  37. object TraversableMatchers extends TraversableMatchers

  38. object TryMatchers extends TryMatchers

  39. object ValueCheck

  40. object ValueChecks extends ValueChecks

Ungrouped