Trait

org.specs2.matcher

Matchers1

Related Doc: package matcher

Permalink

trait Matchers1 extends AnyBaseMatchers with TraversableBaseMatchers with StringBaseMatchers with ExceptionBaseMatchers with NumericBaseMatchers with OptionBaseMatchers with EitherBaseMatchers with TryBaseMatchers with EventuallyMatchers with FutureBaseMatchers with ValueChecksBase

Linear Supertypes
ValueChecksBase, ValueChecksLowImplicits, FutureBaseMatchers, EventuallyMatchers, EventuallyResults, TryBaseMatchers, EitherBaseMatchers, OptionBaseMatchers, NumericBaseMatchers, ExceptionBaseMatchers, ExpectationsCreation, MatchResultStackTrace, StringBaseMatchers, TraversableBaseMatchers, AnyBaseMatchers, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Matchers1
  2. ValueChecksBase
  3. ValueChecksLowImplicits
  4. FutureBaseMatchers
  5. EventuallyMatchers
  6. EventuallyResults
  7. TryBaseMatchers
  8. EitherBaseMatchers
  9. OptionBaseMatchers
  10. NumericBaseMatchers
  11. ExceptionBaseMatchers
  12. ExpectationsCreation
  13. MatchResultStackTrace
  14. StringBaseMatchers
  15. TraversableBaseMatchers
  16. AnyBaseMatchers
  17. AnyRef
  18. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. class ExceptionClassMatcher extends Matcher[Any]

    Permalink

    Exception matcher checking the type of a thrown exception.

    Exception matcher checking the type of a thrown exception.

    Definition Classes
    ExceptionBaseMatchers
  2. class ExceptionMatcher[E <: Throwable] extends Matcher[Any]

    Permalink

    This matchers matches exception instances.

    This matchers matches exception instances.

    Definition Classes
    ExceptionBaseMatchers
    See also

    throwA

  3. class FindMatcher extends Matcher[String]

    Permalink

    Matcher to find if the regexp a is found inside b.

    Matcher to find if the regexp a is found inside b. This matcher can be specialized to a FindMatcherWithGroups which will also check the found groups

    Definition Classes
    StringBaseMatchers
  4. class FindMatcherPattern extends FindMatcher

    Permalink

    Matcher to find if the pattern p is found inside b.

    Matcher to find if the pattern p is found inside b.

    Definition Classes
    StringBaseMatchers
  5. class FindMatcherPatternWithGroups extends FindMatcherWithGroups

    Permalink

    Matcher to find if the pattern p is found inside b.

    Matcher to find if the pattern p is found inside b.

    Definition Classes
    StringBaseMatchers
  6. class FindMatcherRegex extends FindMatcherPattern

    Permalink

    Matcher to find if the Regex r is found inside b.

    Matcher to find if the Regex r is found inside b.

    Definition Classes
    StringBaseMatchers
  7. class FindMatcherWithGroups extends Matcher[String]

    Permalink

    Matcher to find if the regexp a is found inside b.

    Matcher to find if the regexp a is found inside b. This matcher checks if the found groups are really the ones expected

    Definition Classes
    StringBaseMatchers
  8. trait TraversableMatcher[T] extends Matcher[GenTraversableOnce[T]]

    Permalink
    Definition Classes
    TraversableBaseMatchers

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. def !=/(s: String): Matcher[Any]

    Permalink

    matches if a.toLowerCase.trim != b.toLowerCase.trim

    matches if a.toLowerCase.trim != b.toLowerCase.trim

    Definition Classes
    StringBaseMatchers
  3. def !==[T](t: ⇒ T): Matcher[T]

    Permalink

    matches if a != b

    matches if a != b

    Definition Classes
    AnyBaseMatchers
  4. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  5. def <[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThan[S]

    Permalink

    alias for beLessThan

    alias for beLessThan

    Definition Classes
    NumericBaseMatchers
  6. def <=[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThanOrEqualTo[S]

    Permalink

    alias for beLessThanOrEqualTo

    alias for beLessThanOrEqualTo

    Definition Classes
    NumericBaseMatchers
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def ==/(s: String): AdaptableMatcher[Any]

    Permalink

    matches if a.toLowerCase.trim = b.toLowerCase.trim

    matches if a.toLowerCase.trim = b.toLowerCase.trim

    Definition Classes
    StringBaseMatchers
  9. def ===[T](t: ⇒ T): BeTypedEqualTo[T]

    Permalink

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  10. def ==~[T, S](s: ⇒ S)(implicit convert: (S) ⇒ T): Matcher[T]

    Permalink

    matches if a == b after an implicit conversion

    matches if a == b after an implicit conversion

    Definition Classes
    AnyBaseMatchers
  11. def =~(r: Regex): BeMatchingRegex

    Permalink

    alias for beMatching but matching just a fragment of the string

    alias for beMatching but matching just a fragment of the string

    Definition Classes
    StringBaseMatchers
  12. def =~(p: Pattern): BeMatchingPattern

    Permalink

    alias for beMatching but matching just a fragment of the string

    alias for beMatching but matching just a fragment of the string

    Definition Classes
    StringBaseMatchers
  13. def =~(t: ⇒ String): BeMatching

    Permalink

    alias for beMatching but matching just a fragment of the string

    alias for beMatching but matching just a fragment of the string

    Definition Classes
    StringBaseMatchers
  14. def >[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    Permalink

    alias for beGreaterThan

    alias for beGreaterThan

    Definition Classes
    NumericBaseMatchers
  15. def >=[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    Permalink

    alias for beGreaterThanOrEqualTo

    alias for beGreaterThanOrEqualTo

    Definition Classes
    NumericBaseMatchers
  16. def aFailedTry[T](t: Throwable): TryFailureCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  17. def aFailedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  18. def aFailedTry[T]: TryFailureMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  19. def aSuccessfulTry[T](t: T): TrySuccessCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  20. def aSuccessfulTry[T](check: ValueCheck[T]): TrySuccessCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  21. def aSuccessfulTry[T]: TrySuccessMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  22. def allOf[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  23. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  24. def asNoneAs[T](other: ⇒ Option[T]): Matcher[Option[T]]

    Permalink
    Definition Classes
    OptionBaseMatchers
  25. def atLeast[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  26. def atMost[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  27. def await[T](m: Matcher[T])(retries: Int, timeout: FiniteDuration)(implicit ee: ExecutionEnv): Matcher[Future[T]]

    Permalink
    Definition Classes
    FutureBaseMatchers
  28. def await[T](m: Matcher[T])(implicit ee: ExecutionEnv): Matcher[Future[T]]

    Permalink
    Definition Classes
    FutureBaseMatchers
  29. def awaitFor[T](m: Matcher[T])(timeout: FiniteDuration)(implicit ee: ExecutionEnv): Matcher[Future[T]]

    Permalink
    Definition Classes
    FutureBaseMatchers
  30. def be[T <: AnyRef](t: ⇒ T): BeTheSameAs[T]

    Permalink

    alias for beTheSameAs

    alias for beTheSameAs

    Definition Classes
    AnyBaseMatchers
  31. def beAFailedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  32. def beAFailedTry[T]: TryFailureMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  33. def beASuccessfulTry[T](check: ValueCheck[T]): TrySuccessCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  34. def beASuccessfulTry[T]: TrySuccessMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  35. def beAnInstanceOf[T](implicit arg0: ClassTag[T]): Matcher[AnyRef]

    Permalink
    Definition Classes
    AnyBaseMatchers
  36. def beAnyOf[T](t: T*): Matcher[T]

    Permalink

    alias for beOneOf

    alias for beOneOf

    Definition Classes
    AnyBaseMatchers
  37. def beAsNoneAs[T](other: ⇒ Option[T]): Matcher[Option[T]]

    Permalink
    Definition Classes
    OptionBaseMatchers
  38. def beAsNullAs[T](a: ⇒ T): Matcher[T]

    Permalink

    matches if a is null when v is null and a is not null when v is not null

    matches if a is null when v is null and a is not null when v is not null

    Definition Classes
    AnyBaseMatchers
  39. def beAssignableFrom[T](implicit arg0: ClassTag[T]): Matcher[Class[_]]

    Permalink

    matches if v.isAssignableFrom(c)

    matches if v.isAssignableFrom(c)

    Definition Classes
    AnyBaseMatchers
  40. def beBetween[T](t1: T, t2: T)(implicit arg0: (T) ⇒ Ordered[T]): BetweenMatcher[T]

    Permalink

    matches if a value is between 2 others according to an Ordering

    matches if a value is between 2 others according to an Ordering

    Definition Classes
    NumericBaseMatchers
  41. def beCloseTo[S](target: SignificantTarget[S])(implicit arg0: Numeric[S]): Matcher[S]

    Permalink
    Definition Classes
    NumericBaseMatchers
  42. def beCloseTo[S](target: S, figures: SignificantFigures)(implicit arg0: Numeric[S]): Matcher[S]

    Permalink

    matches if target - actual < 10 pow (log x - significantDigits)

    matches if target - actual < 10 pow (log x - significantDigits)

    Definition Classes
    NumericBaseMatchers
  43. def beCloseTo[S](delta: PlusOrMinus[S])(implicit arg0: Numeric[S]): Matcher[S]

    Permalink

    matches if x = n +/- delta

    matches if x = n +/- delta

    Definition Classes
    NumericBaseMatchers
  44. def beCloseTo[S](n: S, delta: S)(implicit arg0: Numeric[S]): Matcher[S]

    Permalink

    matches if x = n +/- delta

    matches if x = n +/- delta

    Definition Classes
    NumericBaseMatchers
  45. def beEmpty[T](implicit arg0: (T) ⇒ Any { def isEmpty: Boolean }): Matcher[T]

    Permalink

    matches if a.isEmpty

    matches if a.isEmpty

    Definition Classes
    AnyBaseMatchers
  46. def beEqualTo[T](t: ⇒ T): BeEqualTo

    Permalink

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  47. def beFailedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  48. def beFailedTry[T]: TryFailureMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  49. def beFalse: Matcher[Boolean]

    Permalink

    matches if a == false

    matches if a == false

    Definition Classes
    AnyBaseMatchers
  50. def beGreaterThan[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    Permalink

    matches if x > n

    matches if x > n

    Definition Classes
    NumericBaseMatchers
  51. def beGreaterThanOrEqualTo[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    Permalink

    matches if x >= n

    matches if x >= n

    Definition Classes
    NumericBaseMatchers
  52. def beLeft[T]: LeftMatcher[T]

    Permalink
    Definition Classes
    EitherBaseMatchers
  53. def beLeft[T](t: ValueCheck[T]): LeftCheckedMatcher[T]

    Permalink
    Definition Classes
    EitherBaseMatchers
  54. def beLessThan[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThan[S]

    Permalink

    matches if x < n

    matches if x < n

    Definition Classes
    NumericBaseMatchers
  55. def beLessThanOrEqualTo[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThanOrEqualTo[S]

    Permalink

    matches if x <= n

    matches if x <= n

    Definition Classes
    NumericBaseMatchers
  56. def beLike[T](pattern: PartialFunction[T, MatchResult[_]]): Matcher[T]

    Permalink

    matches if the value returns a successful result when applied to a PartialFunction

    matches if the value returns a successful result when applied to a PartialFunction

    Definition Classes
    AnyBaseMatchers
  57. def beMatching(a: Regex): BeMatchingRegex

    Permalink

    matches if b matches the regex a

    matches if b matches the regex a

    Definition Classes
    StringBaseMatchers
  58. def beMatching(a: Pattern): BeMatchingPattern

    Permalink

    matches if b matches the pattern a

    matches if b matches the pattern a

    Definition Classes
    StringBaseMatchers
  59. def beMatching(a: ⇒ String): BeMatching

    Permalink

    matches if b matches the regular expression a

    matches if b matches the regular expression a

    Definition Classes
    StringBaseMatchers
  60. def beNone: Matcher[Option[Any]]

    Permalink
    Definition Classes
    OptionBaseMatchers
  61. def beNull[T]: BeNull[T]

    Permalink

    matches if the value is null

    matches if the value is null

    Definition Classes
    AnyBaseMatchers
  62. def beOneOf[T](t: T*): Matcher[T]

    Permalink

    matches if t.toSeq.exists(_ == v)

    matches if t.toSeq.exists(_ == v)

    Definition Classes
    AnyBaseMatchers
  63. def beRight[T]: RightMatcher[T]

    Permalink
    Definition Classes
    EitherBaseMatchers
  64. def beRight[T](t: ValueCheck[T]): RightCheckedMatcher[T]

    Permalink
    Definition Classes
    EitherBaseMatchers
  65. def beSome[T]: SomeMatcher[T]

    Permalink
    Definition Classes
    OptionBaseMatchers
  66. def beSome[T](check: ValueCheck[T]): SomeCheckedMatcher[T]

    Permalink
    Definition Classes
    OptionBaseMatchers
  67. def beSorted[T](implicit arg0: Ordering[T]): OrderingMatcher[T]

    Permalink

    returns

    a matcher checking if the elements are ordered

    Definition Classes
    TraversableBaseMatchers
  68. def beSuccessfulTry[T](check: ValueCheck[T]): TrySuccessCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  69. def beSuccessfulTry[T]: TrySuccessMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  70. def beTheSameAs[T <: AnyRef](t: ⇒ T): BeTheSameAs[T]

    Permalink

    matches if a eq b

    matches if a eq b

    Definition Classes
    AnyBaseMatchers
  71. def beTrue: BeTrueMatcher

    Permalink

    matches if a == true

    matches if a == true

    Definition Classes
    AnyBaseMatchers
  72. def beTypedEqualTo[T](t: ⇒ T, equality: (T, T) ⇒ Boolean = (t1:T, t2:T) => t1 == t2): BeTypedEqualTo[T]

    Permalink

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  73. def be[[T](t1: T, t2: T)(implicit arg0: (T) ⇒ Ordered[T]): BetweenMatcher[T]

    Permalink

    alias for the adventurous: 5 must (be[(2, 7)[)

    alias for the adventurous: 5 must (be[(2, 7)[)

    Definition Classes
    NumericBaseMatchers
  74. def be][T](t1: T, t2: T)(implicit arg0: (T) ⇒ Ordered[T]): BetweenMatcher[T]

    Permalink

    alias for the adventurous: 5 must (be](2, 7)[)

    alias for the adventurous: 5 must (be](2, 7)[)

    Definition Classes
    NumericBaseMatchers
  75. def be_!=[T](t: ⇒ T): Matcher[Any]

    Permalink

    matches if a != b

    matches if a != b

    Definition Classes
    AnyBaseMatchers
  76. def be_!=/(a: String): Matcher[Any]

    Permalink

    matches if a.toLowerCase.trim != b.toLowerCase.trim

    matches if a.toLowerCase.trim != b.toLowerCase.trim

    Definition Classes
    StringBaseMatchers
  77. def be_!==[T](t: ⇒ T): Matcher[T]

    Permalink

    matches if a != b

    matches if a != b

    Definition Classes
    AnyBaseMatchers
  78. def be_<[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThan[S]

    Permalink

    alias for beLessThan

    alias for beLessThan

    Definition Classes
    NumericBaseMatchers
  79. def be_<=[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThanOrEqualTo[S]

    Permalink

    alias for beLessThanOrEqualTo

    alias for beLessThanOrEqualTo

    Definition Classes
    NumericBaseMatchers
  80. def be_==[T](t: ⇒ T): BeEqualTo

    Permalink

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  81. def be_==/(a: String): AdaptableMatcher[Any]

    Permalink

    matches if a.toLowerCase.trim = b.toLowerCase.trim

    matches if a.toLowerCase.trim = b.toLowerCase.trim

    Definition Classes
    StringBaseMatchers
  82. def be_===[T](t: ⇒ T): BeTypedEqualTo[T]

    Permalink

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  83. def be_==~[T, S](s: ⇒ S)(implicit convert: (S) ⇒ T): Matcher[T]

    Permalink

    matches if a == b after an implicit conversion

    matches if a == b after an implicit conversion

    Definition Classes
    AnyBaseMatchers
  84. def be_>[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    Permalink

    alias for beGreaterThan

    alias for beGreaterThan

    Definition Classes
    NumericBaseMatchers
  85. def be_>=[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    Permalink

    alias for beGreaterThanOrEqualTo

    alias for beGreaterThanOrEqualTo

    Definition Classes
    NumericBaseMatchers
  86. def between[T](t1: T, t2: T)(implicit arg0: (T) ⇒ Ordered[T]): BetweenMatcher[T]

    Permalink
    Definition Classes
    NumericBaseMatchers
  87. def checkFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    this method can be overridden to throw exceptions when checking the match result

    this method can be overridden to throw exceptions when checking the match result

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  88. def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    this method can be overridden to throw exceptions when checking the match result

    this method can be overridden to throw exceptions when checking the match result

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  89. def checkResultFailure(r: ⇒ Result): Result

    Permalink

    this method can be overridden to throw exceptions when checking the result

    this method can be overridden to throw exceptions when checking the result

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  90. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  91. def closeTo[S](target: SignificantTarget[S])(implicit arg0: Numeric[S]): Matcher[S]

    Permalink
    Definition Classes
    NumericBaseMatchers
  92. def closeTo[S](target: S, figures: SignificantFigures)(implicit arg0: Numeric[S]): Matcher[S]

    Permalink
    Definition Classes
    NumericBaseMatchers
  93. def closeTo[S](delta: PlusOrMinus[S])(implicit arg0: Numeric[S]): Matcher[S]

    Permalink
    Definition Classes
    NumericBaseMatchers
  94. def closeTo[S](n: S, delta: S)(implicit arg0: Numeric[S]): Matcher[S]

    Permalink
    Definition Classes
    NumericBaseMatchers
  95. def contain(t: Char): Matcher[String]

    Permalink

    matches if (b contains a)

    matches if (b contains a)

    Definition Classes
    StringBaseMatchers
  96. def contain(t: String): Matcher[String]

    Permalink

    matches if (b contains a)

    matches if (b contains a)

    Definition Classes
    StringBaseMatchers
  97. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T], t20: ValueCheck[T], t21: ValueCheck[T], t22: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  98. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T], t20: ValueCheck[T], t21: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  99. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T], t20: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  100. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  101. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  102. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  103. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  104. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  105. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  106. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  107. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  108. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  109. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  110. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  111. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  112. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  113. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  114. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  115. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  116. def contain[T](t1: ValueCheck[T], t2: ValueCheck[T]): ContainWithResultSeq[T]

    Permalink

    Additional contain methods using to avoid automatic tuple conversions

    Additional contain methods using to avoid automatic tuple conversions

    Definition Classes
    TraversableBaseMatchers
  117. def contain[T](cm: ContainWithResultSeq[T]): ContainWithResultSeq[T]

    Permalink

    COLLECTION MATCHERS

    COLLECTION MATCHERS

    Definition Classes
    TraversableBaseMatchers
  118. def contain[T](check: ValueCheck[T]): ContainWithResult[T]

    Permalink

    ELEMENTS MATCHERS

    ELEMENTS MATCHERS

    Definition Classes
    TraversableBaseMatchers
  119. def containAllOf[T](seq: Seq[T]): ContainWithResultSeq[T]

    Permalink

    match if a traversable contains all the elements of seq (and maybe more)

    match if a traversable contains all the elements of seq (and maybe more)

    Definition Classes
    TraversableBaseMatchers
  120. def containAnyOf[T](seq: Seq[T]): ContainWithResult[T]

    Permalink

    match if a traversable contains one of (t1, t2)

    match if a traversable contains one of (t1, t2)

    Definition Classes
    TraversableBaseMatchers
  121. def containMatch[T](t: ⇒ String): Matcher[GenTraversableOnce[T]]

    Permalink

    match if traversable contains (x matches .*+t+.*)

    match if traversable contains (x matches .*+t+.*)

    Definition Classes
    TraversableBaseMatchers
  122. def containPattern[T](t: ⇒ String): Matcher[GenTraversableOnce[T]]

    Permalink

    match if traversable contains (x matches p)

    match if traversable contains (x matches p)

    Definition Classes
    TraversableBaseMatchers
  123. def containTheSameElementsAs[T](seq: Seq[T], equality: (T, T) ⇒ Boolean = (_:T) == (_:T)): Matcher[Traversable[T]]

    Permalink

    does a containAll comparison in both ways

    does a containAll comparison in both ways

    Definition Classes
    TraversableBaseMatchers
  124. def createExpectable[T](t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]

    Permalink

    returns

    an Expectable with a description function

    Definition Classes
    ExpectationsCreation
  125. def createExpectable[T](t: ⇒ T, alias: (String) ⇒ String): Expectable[T]

    Permalink

    returns

    an Expectable with a description function

    Definition Classes
    ExpectationsCreation
  126. def createExpectable[T](t: ⇒ T, alias: ⇒ String): Expectable[T]

    Permalink

    returns

    an Expectable with a description

    Definition Classes
    ExpectationsCreation
  127. def createExpectable[T](t: ⇒ T): Expectable[T]

    Permalink

    returns

    an Expectable

    Definition Classes
    ExpectationsCreation
  128. def createExpectableWithShowAs[T](t: ⇒ T, showAs: ⇒ String): Expectable[T]

    Permalink

    returns

    an Expectable with a function to show the element T

    Definition Classes
    ExpectationsCreation
  129. def eachOf[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  130. def endWith(t: ⇒ String): Matcher[String]

    Permalink

    matches if b.endsWith(a)

    matches if b.endsWith(a)

    Definition Classes
    StringBaseMatchers
  131. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  132. def equalTo[T](t: ⇒ T): BeEqualTo

    Permalink

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  133. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  134. def eventually[T](nested: ⇒ Matcher[T]): Matcher[T]

    Permalink

    returns

    a matcher that will retry the nested matcher 40 times

    Definition Classes
    EventuallyMatchers
  135. def eventually[T](nested: ⇒ Matcher[T], retries: Int, sleep: Duration): Matcher[T]

    Permalink

    returns

    a matcher that will retry the nested matcher a given number of times

    Definition Classes
    EventuallyMatchers
  136. def eventually[T](result: ⇒ T)(implicit arg0: AsResult[T]): T

    Permalink

    returns

    a result that is retried at least 40 times until it's ok

    Definition Classes
    EventuallyResults
  137. def eventually[T](retries: Int, sleep: Duration)(result: ⇒ T)(implicit arg0: AsResult[T]): T

    Permalink

    returns

    a matcher that will retry the nested matcher a given number of times

    Definition Classes
    EventuallyResults
  138. def exactly[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

    Permalink
    Definition Classes
    TraversableBaseMatchers
  139. def failedTry[T](t: Throwable): TryFailureCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  140. def failedTry[T](check: ValueCheck[Throwable]): TryFailureCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  141. def failedTry[T]: TryFailureMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  142. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  143. def find(r: Regex): FindMatcherRegex

    Permalink

    matches if the regexp r is found inside b

    matches if the regexp r is found inside b

    Definition Classes
    StringBaseMatchers
  144. def find(p: Pattern): FindMatcherPattern

    Permalink

    matches if the pattern p is found inside b

    matches if the pattern p is found inside b

    Definition Classes
    StringBaseMatchers
  145. def find(a: ⇒ String): FindMatcher

    Permalink

    matches if the regexp a is found inside b

    matches if the regexp a is found inside b

    Definition Classes
    StringBaseMatchers
  146. implicit def functionIsValueCheck[T, R](f: (T) ⇒ R)(implicit arg0: AsResult[R]): ValueCheck[T]

    Permalink

    a function returning an object having an AsResult instance can check a value

    a function returning an object having an AsResult instance can check a value

    Definition Classes
    ValueChecksLowImplicits
  147. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  148. def greaterThan[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    Permalink
    Definition Classes
    NumericBaseMatchers
  149. def greaterThanOrEqualTo[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): Matcher[S]

    Permalink
    Definition Classes
    NumericBaseMatchers
  150. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  151. def haveClass[T](implicit arg0: ClassTag[T]): Matcher[AnyRef]

    Permalink

    matches if v.getClass == c

    matches if v.getClass == c

    Definition Classes
    AnyBaseMatchers
  152. def haveInterface[T](implicit arg0: ClassTag[T]): Matcher[AnyRef]

    Permalink

    matches if x.getClass.getInterfaces.contains(T)

    matches if x.getClass.getInterfaces.contains(T)

    Definition Classes
    AnyBaseMatchers
  153. def haveLength[T](check: ValueCheck[Int])(implicit arg0: Sized[T]): SizedCheckedMatcher[T]

    Permalink

    alias for haveSize

    alias for haveSize

    Definition Classes
    TraversableBaseMatchers
  154. def haveLength[T](n: Int)(implicit arg0: Sized[T]): SizedMatcher[T]

    Permalink

    alias for haveSize

    alias for haveSize

    Definition Classes
    TraversableBaseMatchers
  155. def haveSize[T](check: ValueCheck[Int])(implicit arg0: Sized[T]): SizedCheckedMatcher[T]

    Permalink

    match if there is a way to size T

    match if there is a way to size T

    Definition Classes
    TraversableBaseMatchers
  156. def haveSize[T](n: Int)(implicit arg0: Sized[T]): SizedMatcher[T]

    Permalink

    match if there is a way to size T

    match if there is a way to size T

    Definition Classes
    TraversableBaseMatchers
  157. def haveSuperclass[T](implicit arg0: ClassTag[T]): Matcher[AnyRef]

    Permalink

    matches if c.isAssignableFrom(v.getClass.getSuperclass)

    matches if c.isAssignableFrom(v.getClass.getSuperclass)

    Definition Classes
    AnyBaseMatchers
  158. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  159. def left[T]: LeftMatcher[Nothing]

    Permalink
    Definition Classes
    EitherBaseMatchers
  160. def left[T](t: ValueCheck[T]): LeftCheckedMatcher[T]

    Permalink
    Definition Classes
    EitherBaseMatchers
  161. def left[T](t: T): LeftCheckedMatcher[T]

    Permalink
    Definition Classes
    EitherBaseMatchers
  162. def length[T](check: ValueCheck[Int])(implicit arg0: Sized[T]): SizedCheckedMatcher[T]

    Permalink

    alias for haveSize

    alias for haveSize

    Definition Classes
    TraversableBaseMatchers
  163. def length[T](n: Int)(implicit arg0: Sized[T]): SizedMatcher[T]

    Permalink

    alias for haveSize

    alias for haveSize

    Definition Classes
    TraversableBaseMatchers
  164. def lessThan[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThan[S]

    Permalink
    Definition Classes
    NumericBaseMatchers
  165. def lessThanOrEqualTo[S](n: S)(implicit arg0: (S) ⇒ Ordered[S]): BeLessThanOrEqualTo[S]

    Permalink

    matches if x <= n

    matches if x <= n

    Definition Classes
    NumericBaseMatchers
  166. def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    this method can be overridden to intercept a MatchResult and change its message before it is thrown

    this method can be overridden to intercept a MatchResult and change its message before it is thrown

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  167. implicit def matcherIsValueCheck[T](m: Matcher[T]): ValueCheck[T]

    Permalink

    a Matcher[T] can check a value

    a Matcher[T] can check a value

    Definition Classes
    ValueChecksBase
  168. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  169. def none: Matcher[Option[Any]]

    Permalink
    Definition Classes
    OptionBaseMatchers
  170. def not[T](m: Matcher[T]): Matcher[T]

    Permalink

    negate a matcher

    negate a matcher

    Definition Classes
    AnyBaseMatchers
  171. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  172. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  173. def retry[T](m: Matcher[T])(retries: Int)(implicit ee: ExecutionEnv): Matcher[Future[T]]

    Permalink
    Definition Classes
    FutureBaseMatchers
  174. def right[T]: RightMatcher[Nothing]

    Permalink
    Definition Classes
    EitherBaseMatchers
  175. def right[T](t: ValueCheck[T]): RightCheckedMatcher[T]

    Permalink
    Definition Classes
    EitherBaseMatchers
  176. def right[T](t: T): RightCheckedMatcher[T]

    Permalink
    Definition Classes
    EitherBaseMatchers
  177. def sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]

    Permalink

    returns

    the match result without any side-effects

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  178. def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

    this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

    Attributes
    protected
    Definition Classes
    MatchResultStackTrace
  179. def size[T](check: ValueCheck[Int])(implicit arg0: Sized[T]): SizedCheckedMatcher[T]

    Permalink

    alias for haveSize

    alias for haveSize

    Definition Classes
    TraversableBaseMatchers
  180. def size[T](n: Int)(implicit arg0: Sized[T]): SizedMatcher[T]

    Permalink

    alias for haveSize

    alias for haveSize

    Definition Classes
    TraversableBaseMatchers
  181. def some[T]: SomeMatcher[T]

    Permalink
    Definition Classes
    OptionBaseMatchers
  182. def some[T](check: ValueCheck[T]): SomeCheckedMatcher[T]

    Permalink
    Definition Classes
    OptionBaseMatchers
  183. def some[T](t: T): SomeCheckedMatcher[T]

    Permalink
    Definition Classes
    OptionBaseMatchers
  184. def sorted[T](implicit arg0: Ordering[T]): OrderingMatcher[T]

    Permalink

    alias for beSorted

    alias for beSorted

    Definition Classes
    TraversableBaseMatchers
  185. def startWith(t: String): Matcher[String]

    Permalink

    matches if b.startsWith(a)

    matches if b.startsWith(a)

    Definition Classes
    StringBaseMatchers
  186. def successfulTry[T](t: T): TrySuccessCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  187. def successfulTry[T](check: ValueCheck[T]): TrySuccessCheckedMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  188. def successfulTry[T]: TrySuccessMatcher[T]

    Permalink
    Definition Classes
    TryBaseMatchers
  189. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  190. def throwA[E <: Throwable](e: E): ExceptionMatcher[E]

    Permalink

    returns

    a matcher checking the value of an Exception

    Definition Classes
    ExceptionBaseMatchers
  191. def throwA[E <: Throwable](message: String = ".*")(implicit m: ClassTag[E]): Matcher[Any]

    Permalink

    returns

    a matcher checking the type of an Exception and its message (as a regexp)

    Definition Classes
    ExceptionBaseMatchers
  192. def throwA[E <: Throwable](implicit m: ClassTag[E]): ExceptionClassMatcher

    Permalink

    returns

    a matcher checking the type of an Exception

    Definition Classes
    ExceptionBaseMatchers
  193. def throwAn[E <: Throwable](e: E): ExceptionMatcher[E]

    Permalink

    alias for throwA

    alias for throwA

    Definition Classes
    ExceptionBaseMatchers
  194. def throwAn[E <: Throwable](message: String = ".*")(implicit m: ClassTag[E]): Matcher[Any]

    Permalink

    alias for throwA

    alias for throwA

    Definition Classes
    ExceptionBaseMatchers
  195. def throwAn[E <: Throwable](implicit m: ClassTag[E]): ExceptionClassMatcher

    Permalink

    alias for throwA

    alias for throwA

    Definition Classes
    ExceptionBaseMatchers
  196. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  197. def typedEqualTo[T](t: ⇒ T, equality: (T, T) ⇒ Boolean = (t1:T, t2:T) => t1 == t2): BeTypedEqualTo[T]

    Permalink

    matches if a == b

    matches if a == b

    Definition Classes
    AnyBaseMatchers
  198. def valueIsTypedValueCheck[T](expected: T): BeEqualTypedValueCheck[T]

    Permalink

    an expected value can be used to check another value

    an expected value can be used to check another value

    Definition Classes
    ValueChecksBase
  199. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  200. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  201. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  202. def ~[S](delta: PlusOrMinus[S])(implicit arg0: Numeric[S]): Matcher[S]

    Permalink

    alias for beCloseTo

    alias for beCloseTo

    Definition Classes
    NumericBaseMatchers
  203. def ~[S](n: S)(delta: S)(implicit arg0: Numeric[S]): Matcher[S]

    Permalink

    alias for beCloseTo

    alias for beCloseTo

    Definition Classes
    NumericBaseMatchers

Inherited from ValueChecksBase

Inherited from ValueChecksLowImplicits

Inherited from FutureBaseMatchers

Inherited from EventuallyMatchers

Inherited from EventuallyResults

Inherited from TryBaseMatchers

Inherited from EitherBaseMatchers

Inherited from OptionBaseMatchers

Inherited from NumericBaseMatchers

Inherited from ExceptionBaseMatchers

Inherited from ExpectationsCreation

Inherited from MatchResultStackTrace

Inherited from StringBaseMatchers

Inherited from TraversableBaseMatchers

Inherited from AnyBaseMatchers

Inherited from AnyRef

Inherited from Any

Ungrouped