org.scalatest.matchers.should

Matchers

object Matchers extends Matchers

Companion object that facilitates the importing of Matchers members as an alternative to mixing it the trait. One use case is to import Matchers members so you can use them in the Scala interpreter.

Linear Supertypes
Matchers, Explicitly, MatcherWords, ShouldVerb, Tolerance, Assertions, TripleEquals, TripleEqualsSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Matchers
  2. Matchers
  3. Explicitly
  4. MatcherWords
  5. ShouldVerb
  6. Tolerance
  7. Assertions
  8. TripleEquals
  9. TripleEqualsSupport
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. final class AWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  2. final class AnWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  3. sealed class AnyShouldWrapper[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  4. class CheckingEqualizer[L] extends AnyRef

    Definition Classes
    TripleEqualsSupport
  5. sealed class Collected extends Serializable

    Attributes
    protected
    Definition Classes
    Matchers
  6. class DecidedByEquality[A] extends Equality[A]

    Definition Classes
    Explicitly
  7. class DecidedWord extends AnyRef

    Definition Classes
    Explicitly
  8. class DeterminedByEquivalence[T] extends Equivalence[T]

    Definition Classes
    Explicitly
  9. class DeterminedWord extends AnyRef

    Definition Classes
    Explicitly
  10. class Equalizer[L] extends AnyRef

    Definition Classes
    TripleEqualsSupport
  11. final class KeyWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  12. final class PlusOrMinusWrapper[T] extends AnyRef

    Definition Classes
    Tolerance
  13. final class RegexWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  14. final class RegexWrapper extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  15. class ResultOfBeWordForAny[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  16. sealed class ResultOfBeWordForCollectedAny[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  17. final class ResultOfCollectedAny[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  18. final class ResultOfContainWordForCollectedAny[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  19. final class ResultOfEndWithWordForCollectedString extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  20. final class ResultOfEndWithWordForString extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  21. final class ResultOfFullyMatchWordForCollectedString extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  22. final class ResultOfFullyMatchWordForString extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  23. final class ResultOfHaveWordForCollectedExtent[A] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  24. final class ResultOfHaveWordForExtent[A] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  25. final class ResultOfIncludeWordForCollectedString extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  26. final class ResultOfIncludeWordForString extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  27. final class ResultOfNotWordForCollectedAny[T] extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  28. final class ResultOfStartWithWordForCollectedString extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  29. final class ResultOfStartWithWordForString extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  30. final class StringShouldWrapper extends AnyShouldWrapper[String] with StringShouldWrapperForVerb

    This class is part of the ScalaTest matchers DSL.

  31. trait StringShouldWrapperForVerb extends AnyRef

    Definition Classes
    ShouldVerb
  32. class TheAfterWord extends AnyRef

    Definition Classes
    Explicitly
  33. final class TheSameInstanceAsPhrase extends AnyRef

    This class is part of the ScalaTest matchers DSL.

  34. final class ValueWord extends AnyRef

    This class is part of the ScalaTest matchers DSL.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. def !==[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]

    Definition Classes
    TripleEqualsSupport
  4. def !==(right: Null): TripleEqualsInvocation[Null]

    Definition Classes
    TripleEqualsSupport
  5. def !==[T](right: T): TripleEqualsInvocation[T]

    Definition Classes
    TripleEqualsSupport
  6. final def ##(): Int

    Definition Classes
    AnyRef → Any
  7. def <[T](right: T)(implicit arg0: Ordering[T]): ResultOfLessThanComparison[T]

    This method enables the following syntax:

    This method enables the following syntax:

    num should (not be < (10) and not be > (17))
                       ^
    

    Definition Classes
    Matchers
  8. def <=[T](right: T)(implicit arg0: Ordering[T]): ResultOfLessThanOrEqualToComparison[T]

    This method enables the following syntax:

    This method enables the following syntax:

    num should (not be <= (10) and not be > (17))
                       ^
    

    Definition Classes
    Matchers
  9. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  11. def ===[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]

    Definition Classes
    TripleEqualsSupport
  12. def ===(right: Null): TripleEqualsInvocation[Null]

    Definition Classes
    TripleEqualsSupport
  13. def ===[T](right: T): TripleEqualsInvocation[T]

    Definition Classes
    TripleEqualsSupport
  14. def >[T](right: T)(implicit arg0: Ordering[T]): ResultOfGreaterThanComparison[T]

    This method enables the following syntax:

    This method enables the following syntax:

    num should (not be > (10) and not be < (7))
                       ^
    

    Definition Classes
    Matchers
  15. def >=[T](right: T)(implicit arg0: Ordering[T]): ResultOfGreaterThanOrEqualToComparison[T]

    This method enables the following syntax:

    This method enables the following syntax:

    num should (not be >= (10) and not be < (7))
                       ^
    

    Definition Classes
    Matchers
  16. def a[T](implicit arg0: ClassTag[T]): ResultOfATypeInvocation[T]

    This method enables the following syntax:

    This method enables the following syntax:

    a [RuntimeException] should be thrownBy { ... }
    ^
    

    Definition Classes
    Matchers
  17. val a: AWord

    This field enables the following syntax:

    This field enables the following syntax:

    badBook should not be a ('goodRead)
                          ^
    

    Definition Classes
    Matchers
  18. val after: TheAfterWord

    Definition Classes
    Explicitly
  19. def all(xs: String)(implicit collecting: Collecting[Char, String], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Char]

    This method enables the following syntax for String:

    This method enables the following syntax for String:

    all(str) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  20. def all[K, V, JMAP[k, v] <: Map[k, v]](xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Entry[K, V]]

    This method enables the following syntax for java.util.Map:

    This method enables the following syntax for java.util.Map:

    all(jmap) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  21. def all[K, V, MAP[k, v] <: GenMap[k, v]](xs: MAP[K, V])(implicit collecting: Collecting[(K, V), GenTraversable[(K, V)]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[(K, V)]

    This method enables the following syntax for scala.collection.GenMap:

    This method enables the following syntax for scala.collection.GenMap:

    all(map) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  22. def all[E, C[_]](xs: C[E])(implicit collecting: Collecting[E, C[E]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[E]

    This method enables the following syntax:

    This method enables the following syntax:

    all(xs) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  23. def allElementsOf[R](elements: GenTraversable[R]): ResultOfAllElementsOfApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (allElementsOf(1, 2))
                                  ^
    

    Definition Classes
    Matchers
  24. def allOf(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit pos: Position): ResultOfAllOfApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (allOf(1, 2))
                                  ^
    

    Definition Classes
    Matchers
  25. def an[T](implicit arg0: ClassTag[T]): ResultOfAnTypeInvocation[T]

    This method enables the following syntax:

    This method enables the following syntax:

    an [Exception] should be thrownBy { ... }
    ^
    

    Definition Classes
    Matchers
  26. val an: AnWord

    This field enables the following syntax:

    This field enables the following syntax:

    badBook should not be an (excellentRead)
                          ^
    

    Definition Classes
    Matchers
  27. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  28. def assert(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Definition Classes
    Assertions
    Annotations
    @macroImpl( ... )
  29. def assert(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion

    Definition Classes
    Assertions
    Annotations
    @macroImpl( ... )
  30. def assertCompiles(code: String)(implicit pos: Position): Assertion

    Definition Classes
    Assertions
    Annotations
    @macroImpl( ... )
  31. def assertDoesNotCompile(code: String)(implicit pos: Position): Assertion

    Definition Classes
    Assertions
    Annotations
    @macroImpl( ... )
  32. def assertResult(expected: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Definition Classes
    Assertions
  33. def assertResult(expected: Any, clue: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Definition Classes
    Assertions
  34. def assertThrows[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T], pos: Position): Assertion

    Definition Classes
    Assertions
  35. def assertTypeError(code: String)(implicit pos: Position): Assertion

    Definition Classes
    Assertions
    Annotations
    @macroImpl( ... )
  36. def assume(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Definition Classes
    Assertions
    Annotations
    @macroImpl( ... )
  37. def assume(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion

    Definition Classes
    Assertions
    Annotations
    @macroImpl( ... )
  38. def atLeast(num: Int, xs: String)(implicit collecting: Collecting[Char, String], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Char]

    This method enables the following syntax for String:

    This method enables the following syntax for String:

    atLeast(1, str) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  39. def atLeast[K, V, JMAP[k, v] <: Map[k, v]](num: Int, xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Entry[K, V]]

    This method enables the following syntax for java.util.Map:

    This method enables the following syntax for java.util.Map:

    atLeast(1, jmap) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  40. def atLeast[K, V, MAP[k, v] <: GenMap[k, v]](num: Int, xs: MAP[K, V])(implicit collecting: Collecting[(K, V), GenTraversable[(K, V)]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[(K, V)]

    This method enables the following syntax for scala.collection.GenMap:

    This method enables the following syntax for scala.collection.GenMap:

    atLeast(1, map) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  41. def atLeast[E, C[_]](num: Int, xs: C[E])(implicit collecting: Collecting[E, C[E]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[E]

    This method enables the following syntax:

    This method enables the following syntax:

    atLeast(1, xs) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  42. def atLeastOneElementOf(elements: GenTraversable[Any]): ResultOfAtLeastOneElementOfApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (atLeastOneElementOf (List(1, 2)))
                                  ^
    

    Definition Classes
    Matchers
  43. def atLeastOneOf(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit pos: Position): ResultOfAtLeastOneOfApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (atLeastOneOf(1, 2))
                                  ^
    

    Definition Classes
    Matchers
  44. def atMost(num: Int, xs: String)(implicit collecting: Collecting[Char, String], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Char]

    This method enables the following syntax for String:

    This method enables the following syntax for String:

    atMost(3, str) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  45. def atMost[K, V, JMAP[k, v] <: Map[k, v]](num: Int, xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Entry[K, V]]

    This method enables the following syntax for java.util.Map:

    This method enables the following syntax for java.util.Map:

    atMost(3, jmap) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  46. def atMost[K, V, MAP[k, v] <: GenMap[k, v]](num: Int, xs: MAP[K, V])(implicit collecting: Collecting[(K, V), GenTraversable[(K, V)]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[(K, V)]

    This method enables the following syntax for scala.collection.GenMap:

    This method enables the following syntax for scala.collection.GenMap:

    atMost(3, map) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  47. def atMost[E, C[_]](num: Int, xs: C[E])(implicit collecting: Collecting[E, C[E]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[E]

    This method enables the following syntax:

    This method enables the following syntax:

    atMost(3, xs) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  48. def atMostOneElementOf[R](elements: GenTraversable[R]): ResultOfAtMostOneElementOfApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (atMostOneElementOf (List(1, 2)))
                                  ^
    

    Definition Classes
    Matchers
  49. def atMostOneOf(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit pos: Position): ResultOfAtMostOneOfApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (atMostOneOf(1, 2))
                                  ^
    

    Definition Classes
    Matchers
  50. val be: BeWord

    Definition Classes
    MatcherWords
  51. def between(from: Int, upTo: Int, xs: String)(implicit collecting: Collecting[Char, String], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Char]

    This method enables the following syntax for String:

    This method enables the following syntax for String:

    between(1, 3, str) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  52. def between[K, V, JMAP[k, v] <: Map[k, v]](from: Int, upTo: Int, xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Entry[K, V]]

    This method enables the following syntax for java.util.Map:

    This method enables the following syntax for java.util.Map:

    between(1, 3, jmap) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  53. def between[E, C[_]](from: Int, upTo: Int, xs: C[E])(implicit collecting: Collecting[E, C[E]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[E]

    This method enables the following syntax:

    This method enables the following syntax:

    between(1, 3, xs) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  54. def cancel(cause: Throwable)(implicit pos: Position): Nothing

    Definition Classes
    Assertions
  55. def cancel(message: String, cause: Throwable)(implicit pos: Position): Nothing

    Definition Classes
    Assertions
  56. def cancel(message: String)(implicit pos: Position): Nothing

    Definition Classes
    Assertions
  57. def cancel()(implicit pos: Position): Nothing

    Definition Classes
    Assertions
  58. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. val compile: CompileWord

    Definition Classes
    MatcherWords
  60. val contain: ContainWord

    Definition Classes
    MatcherWords
  61. def convertEquivalenceToAToBConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: <:<[A, B]): CanEqual[A, B]

    Definition Classes
    TripleEquals → TripleEqualsSupport
  62. def convertEquivalenceToBToAConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: <:<[B, A]): CanEqual[A, B]

    Definition Classes
    TripleEquals → TripleEqualsSupport
  63. implicit def convertNumericToPlusOrMinusWrapper[T](pivot: T)(implicit arg0: Numeric[T]): PlusOrMinusWrapper[T]

    Definition Classes
    Tolerance
  64. implicit def convertToAnyShouldWrapper[T](o: T)(implicit pos: Position, prettifier: Prettifier): AnyShouldWrapper[T]

    Implicitly converts an object of type T to a AnyShouldWrapper[T], to enable should methods to be invokable on that object.

    Implicitly converts an object of type T to a AnyShouldWrapper[T], to enable should methods to be invokable on that object.

    Definition Classes
    Matchers
  65. def convertToCheckingEqualizer[T](left: T): CheckingEqualizer[T]

    Definition Classes
    TripleEquals → TripleEqualsSupport
  66. implicit def convertToEqualizer[T](left: T): Equalizer[T]

    Definition Classes
    TripleEquals → TripleEqualsSupport
  67. implicit def convertToRegexWrapper(o: Regex): RegexWrapper

    Implicitly converts an object of type scala.util.matching.Regex to a RegexWrapper, to enable withGroup and withGroups methods to be invokable on that object.

    Implicitly converts an object of type scala.util.matching.Regex to a RegexWrapper, to enable withGroup and withGroups methods to be invokable on that object.

    Definition Classes
    Matchers
  68. implicit def convertToStringShouldWrapper(o: String)(implicit pos: Position, prettifier: Prettifier): StringShouldWrapper

    Implicitly converts an object of type java.lang.String to a StringShouldWrapper, to enable should methods to be invokable on that object.

    Implicitly converts an object of type java.lang.String to a StringShouldWrapper, to enable should methods to be invokable on that object.

    Definition Classes
    Matchers
  69. implicit def convertToStringShouldWrapperForVerb(o: String)(implicit position: Position): StringShouldWrapperForVerb

    Definition Classes
    ShouldVerb
  70. val decided: DecidedWord

    Definition Classes
    Explicitly
  71. def defaultEquality[A]: Equality[A]

    Definition Classes
    TripleEqualsSupport
  72. val defined: DefinedWord

    Definition Classes
    MatcherWords
  73. def definedAt[T](right: T): ResultOfDefinedAt[T]

    This method enables the following syntax:

    This method enables the following syntax:

    list should (not be definedAt (7) and not be definedAt (9))
                        ^
    

    Definition Classes
    Matchers
  74. val determined: DeterminedWord

    Definition Classes
    Explicitly
  75. val empty: EmptyWord

    Definition Classes
    MatcherWords
  76. val endWith: EndWithWord

    Definition Classes
    MatcherWords
  77. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  78. def equal(o: Null): Matcher[AnyRef]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result should equal (null)
                  ^
    

    Definition Classes
    Matchers
  79. def equal[T](spread: Spread[T]): Matcher[T]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result should equal (100 +- 1)
                  ^
    

    Definition Classes
    Matchers
  80. def equal(right: Any): MatcherFactory1[Any, Equality]

    Definition Classes
    MatcherWords
  81. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  82. def every(xs: String)(implicit collecting: Collecting[Char, String], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Char]

    This method enables the following syntax for String:

    This method enables the following syntax for String:

    every(str) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  83. def every[K, V, JMAP[k, v] <: Map[k, v]](xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Entry[K, V]]

    This method enables the following syntax for java.util.Map:

    This method enables the following syntax for java.util.Map:

    every(jmap) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  84. def every[K, V, MAP[k, v] <: Map[k, v]](xs: MAP[K, V])(implicit collecting: Collecting[(K, V), GenTraversable[(K, V)]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[(K, V)]

    This method enables the following syntax for scala.collection.GenMap:

    This method enables the following syntax for scala.collection.GenMap:

    every(map) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  85. def every[E, C[_]](xs: C[E])(implicit collecting: Collecting[E, C[E]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[E]

    This method enables the following syntax:

    This method enables the following syntax:

    every(xs) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  86. def exactly(num: Int, xs: String)(implicit collecting: Collecting[Char, String], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Char]

    This method enables the following syntax for String:

    This method enables the following syntax for String:

    exactly(str) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  87. def exactly[K, V, JMAP[k, v] <: Map[k, v]](num: Int, xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Entry[K, V]]

    This method enables the following syntax for java.util.Map:

    This method enables the following syntax for java.util.Map:

    exactly(jmap) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  88. def exactly[K, V, MAP[k, v] <: GenMap[k, v]](num: Int, xs: MAP[K, V])(implicit collecting: Collecting[(K, V), GenTraversable[(K, V)]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[(K, V)]

    This method enables the following syntax for scala.collection.GenMap:

    This method enables the following syntax for scala.collection.GenMap:

    exactly(map) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  89. def exactly[E, C[_]](num: Int, xs: C[E])(implicit collecting: Collecting[E, C[E]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[E]

    This method enables the following syntax:

    This method enables the following syntax:

    exactly(xs) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  90. val exist: ExistWord

    Definition Classes
    MatcherWords
  91. def fail(cause: Throwable)(implicit pos: Position): Nothing

    Definition Classes
    Assertions
  92. def fail(message: String, cause: Throwable)(implicit pos: Position): Nothing

    Definition Classes
    Assertions
  93. def fail(message: String)(implicit pos: Position): Nothing

    Definition Classes
    Assertions
  94. def fail()(implicit pos: Position): Nothing

    Definition Classes
    Assertions
  95. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  96. val fullyMatch: FullyMatchWord

    Definition Classes
    MatcherWords
  97. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  98. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  99. val have: HaveWord

    Definition Classes
    MatcherWords
  100. def inOrder(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit pos: Position): ResultOfInOrderApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (inOrder(1, 2))
                                  ^
    

    Definition Classes
    Matchers
  101. def inOrderElementsOf[R](elements: GenTraversable[R]): ResultOfInOrderElementsOfApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (inOrderElementsOf List(1, 2))
                                  ^
    

    Definition Classes
    Matchers
  102. def inOrderOnly[T](firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit pos: Position): ResultOfInOrderOnlyApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (inOrderOnly(1, 2))
                                  ^
    

    Definition Classes
    Matchers
  103. val include: IncludeWord

    Definition Classes
    MatcherWords
  104. def intercept[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T], pos: Position): T

    Definition Classes
    Assertions
  105. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  106. val key: KeyWord

    This field enables the following syntax:

    This field enables the following syntax:

    map should not contain key (10)
                           ^
    

    Definition Classes
    Matchers
  107. val length: LengthWord

    Definition Classes
    MatcherWords
  108. def lowPriorityTypeCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], ev: <:<[A, B]): CanEqual[A, B]

    Definition Classes
    TripleEquals → TripleEqualsSupport
  109. val matchPattern: MatchPatternWord

    Definition Classes
    MatcherWords
  110. def message(expectedMessage: String): ResultOfMessageWordApplication

    This method enables the following syntax:

    This method enables the following syntax:

    exception should not have message ("file not found")
                              ^
    

    Definition Classes
    Matchers
  111. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  112. def no(xs: String)(implicit collecting: Collecting[Char, String], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Char]

    This method enables the following syntax for String:

    This method enables the following syntax for String:

    no(str) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  113. def no[K, V, JMAP[k, v] <: Map[k, v]](xs: JMAP[K, V])(implicit collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[Entry[K, V]]

    This method enables the following syntax for java.util.Map:

    This method enables the following syntax for java.util.Map:

    no(jmap) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  114. def no[E, C[_]](xs: C[E])(implicit collecting: Collecting[E, C[E]], prettifier: Prettifier, pos: Position): ResultOfCollectedAny[E]

    This method enables the following syntax:

    This method enables the following syntax:

    no(xs) should fullymatch regex ("Hel*o world".r)
    ^
    

    Definition Classes
    Matchers
  115. def noElementsOf(elements: GenTraversable[Any]): ResultOfNoElementsOfApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (noElementsOf List(1, 2))
                                  ^
    

    Definition Classes
    Matchers
  116. def noException(implicit pos: Position): NoExceptionWord

    Definition Classes
    MatcherWords
  117. def noneOf(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit pos: Position): ResultOfNoneOfApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (noneOf(1, 2))
                                  ^
    

    Definition Classes
    Matchers
  118. val not: NotWord

    Definition Classes
    MatcherWords
  119. final def notify(): Unit

    Definition Classes
    AnyRef
  120. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  121. def of[T](implicit ev: ClassTag[T]): ResultOfOfTypeInvocation[T]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    book should have (message ("A TALE OF TWO CITIES") (of [Book]), title ("A Tale of Two Cities"))
                                                        ^
    

    Definition Classes
    Matchers
  122. def oneElementOf(elements: GenTraversable[Any]): ResultOfOneElementOfApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (oneElementOf (List(1, 2)))
                                  ^
    

    Definition Classes
    Matchers
  123. def oneOf(firstEle: Any, secondEle: Any, remainingEles: Any*)(implicit pos: Position): ResultOfOneOfApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (oneOf(1, 2))
                                  ^
    

    Definition Classes
    Matchers
  124. def only(xs: Any*)(implicit pos: Position): ResultOfOnlyApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (only(1, 2))
                                  ^
    

    Definition Classes
    Matchers
  125. def pending: Assertion with PendingStatement

    Definition Classes
    Assertions
  126. def pendingUntilFixed(f: ⇒ Unit)(implicit pos: Position): Assertion with PendingStatement

    Definition Classes
    Assertions
  127. val readable: ReadableWord

    Definition Classes
    MatcherWords
  128. val regex: RegexWord

    This field enables the following syntax:

    This field enables the following syntax:

    "eight" should not fullyMatch regex ("""(-)?(\d+)(\.\d*)?""".r)
                                  ^
    

    Definition Classes
    Matchers
  129. val size: SizeWord

    Definition Classes
    MatcherWords
  130. val sorted: SortedWord

    Definition Classes
    MatcherWords
  131. val startWith: StartWithWord

    Definition Classes
    MatcherWords
  132. final val succeed: Assertion

    Definition Classes
    Assertions
  133. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  134. def the[T](implicit arg0: ClassTag[T], pos: Position): ResultOfTheTypeInvocation[T]

    This method enables the following syntax:

    This method enables the following syntax:

    the [FileNotFoundException] should be thrownBy { ... }
    ^
    

    Definition Classes
    Matchers
  135. def theSameElementsAs(xs: GenTraversable[_]): ResultOfTheSameElementsAsApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (theSameElementsAs(List(1, 2, 3)))
                                  ^
    

    Definition Classes
    Matchers
  136. def theSameElementsInOrderAs(xs: GenTraversable[_]): ResultOfTheSameElementsInOrderAsApplication

    This method enables the following syntax:

    This method enables the following syntax:

    List(1, 2, 3) should contain (theSameElementsInOrderAs(List(1, 2)))
                                  ^
    

    Definition Classes
    Matchers
  137. val theSameInstanceAs: TheSameInstanceAsPhrase

    This field enables the following syntax:

    This field enables the following syntax:

    oneString should not be theSameInstanceAs (anotherString)
                            ^
    

    Definition Classes
    Matchers
  138. def thrownBy(fun: ⇒ Any): ResultOfThrownByApplication

    This method enables the following syntax:

    This method enables the following syntax:

    a [RuntimeException] should be thrownBy {...}
                                   ^
    

    Definition Classes
    Matchers
  139. def toString(): String

    Definition Classes
    AnyRef → Any
  140. val typeCheck: TypeCheckWord

    Definition Classes
    MatcherWords
  141. def typeCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], ev: <:<[B, A]): CanEqual[A, B]

    Definition Classes
    TripleEquals → TripleEqualsSupport
  142. implicit def unconstrainedEquality[A, B](implicit equalityOfA: Equality[A]): CanEqual[A, B]

    Definition Classes
    TripleEquals → TripleEqualsSupport
  143. val value: ValueWord

    This field enables the following syntax:

    This field enables the following syntax:

    map should not contain value (10)
                           ^
    

    Definition Classes
    Matchers
  144. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  147. def withClue[T](clue: Any)(fun: ⇒ T): T

    Definition Classes
    Assertions
  148. val writable: WritableWord

    Definition Classes
    MatcherWords

Deprecated Value Members

  1. def conversionCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], cnv: (B) ⇒ A): CanEqual[A, B]

    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The conversionCheckedConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  2. def convertEquivalenceToAToBConversionConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: (A) ⇒ B): CanEqual[A, B]

    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The convertEquivalenceToAToBConversionConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  3. def convertEquivalenceToBToAConversionConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: (B) ⇒ A): CanEqual[A, B]

    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The convertEquivalenceToBToAConversionConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  4. def lowPriorityConversionCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], cnv: (A) ⇒ B): CanEqual[A, B]

    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The lowPriorityConversionCheckedConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

Inherited from Matchers

Inherited from Explicitly

Inherited from MatcherWords

Inherited from ShouldVerb

Inherited from Tolerance

Inherited from Assertions

Inherited from TripleEquals

Inherited from TripleEqualsSupport

Inherited from AnyRef

Inherited from Any

Ungrouped