Class

org.scalatest.matchers.must.Matchers

AnyMustWrapper

Related Doc: package Matchers

Permalink

sealed class AnyMustWrapper[T] extends AnyRef

This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

This class is used in conjunction with an implicit conversion to enable must methods to be invoked on objects of type Any.

Source
Matchers.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AnyMustWrapper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AnyMustWrapper(leftSideValue: T, pos: Position, prettifier: Prettifier)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. val leftSideValue: T

    Permalink
  13. def must(endWithWord: EndWithWord)(implicit ev: <:<[T, String]): ResultOfEndWithWordForString

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string must endWith regex ("world")
           ^
    

  14. def must(startWithWord: StartWithWord)(implicit ev: <:<[T, String]): ResultOfStartWithWordForString

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string must startWith regex ("hello")
           ^
    

  15. def must(includeWord: IncludeWord)(implicit ev: <:<[T, String]): ResultOfIncludeWordForString

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string must include regex ("hi")
           ^
    

  16. def must(notExist: ResultOfNotExist)(implicit existence: Existence[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    file must not (exist)
         ^
    

  17. def must(existWord: ExistWord)(implicit existence: Existence[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    file must exist
         ^
    

  18. def must(containWord: ContainWord): ResultOfContainWord[T]

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    xs must contain oneOf (1, 2, 3)
       ^
    

  19. def must(haveWord: HaveWord): ResultOfHaveWordForExtent[T]

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result must have length (3)
           ^
    result must have size (3)
           ^
    

  20. def must(beWord: BeWord): ResultOfBeWordForAny[T]

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result must be a aMatcher
           ^
    

  21. def must(inv: TripleEqualsInvocationOnSpread[T])(implicit ev: Numeric[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result must === (100 +- 1)
           ^
    

  22. def must[U](inv: TripleEqualsInvocation[U])(implicit constraint: CanEqual[T, U]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    a must === (b)
           ^
    

  23. def must(notWord: NotWord): ResultOfNotWordForAny[T]

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result must not equal (3)
           ^
    

  24. def must[TYPECLASS1[_], TYPECLASS2[_]](rightMatcherFactory2: MatcherFactory2[T, TYPECLASS1, TYPECLASS2])(implicit typeClass1: TYPECLASS1[T], typeClass2: TYPECLASS2[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result must (equal (expected) and have length 3)
           ^
    

  25. def must[TYPECLASS1[_]](rightMatcherFactory1: MatcherFactory1[T, TYPECLASS1])(implicit typeClass1: TYPECLASS1[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result must equal (3)
           ^
    

  26. def must(rightMatcherX1: Matcher[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result must be (3)
           ^
    

  27. def mustBe[U >: T](resultOfAnWordApplication: ResultOfAnWordToBePropertyMatcherApplication[U])(implicit ev: <:<[T, AnyRef]): Assertion

    Permalink

    This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:

    This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:

    programmingInScala mustBe an (excellentRead)
                       ^
    

  28. def mustBe[U >: T](resultOfAWordApplication: ResultOfAWordToBePropertyMatcherApplication[U])(implicit ev: <:<[T, AnyRef]): Assertion

    Permalink

    This method enables the following syntax, where goodRead refers to a BePropertyMatcher[Book]:

    This method enables the following syntax, where goodRead refers to a BePropertyMatcher[Book]:

    programmingInScala mustBe a (goodRead)
                       ^
    

  29. def mustBe(bePropertyMatcher: BePropertyMatcher[T])(implicit ev: <:<[T, AnyRef]): Assertion

    Permalink

    This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:

    This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:

    programmingInScala mustBe excellentRead
                       ^
    

  30. def mustBe(resultOfSameInstanceAsApplication: ResultOfTheSameInstanceAsApplication)(implicit toAnyRef: <:<[T, AnyRef]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe theSameInstanceAs (anotherObject)
           ^
    

  31. def mustBe(right: Null)(implicit ev: <:<[T, AnyRef]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe null
           ^
    

  32. def mustBe(right: DefinedWord)(implicit definition: Definition[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe defined
           ^
    

  33. def mustBe(right: EmptyWord)(implicit emptiness: Emptiness[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe empty
           ^
    

  34. def mustBe(right: WritableWord)(implicit writability: Writability[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe writable
           ^
    

  35. def mustBe(right: ReadableWord)(implicit readability: Readability[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe readable
           ^
    

  36. macro def mustBe(anType: ResultOfAnTypeInvocation[_]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    aDouble mustBe an [Book]
            ^
    

  37. macro def mustBe(aType: ResultOfATypeInvocation[_]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    aDouble mustBe a [Book]
            ^
    

  38. def mustBe(right: SortedWord)(implicit sortable: Sortable[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe sorted
           ^
    

  39. def mustBe(spread: Spread[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe 7.1 +- 0.2
           ^
    

  40. def mustBe(beMatcher: BeMatcher[T]): Assertion

    Permalink

    This method enables the following syntax, where odd refers to a BeMatcher[Int]:

    This method enables the following syntax, where odd refers to a BeMatcher[Int]:

    testing
    1 mustBe odd
      ^
    

  41. def mustBe(comparison: ResultOfGreaterThanOrEqualToComparison[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    8 mustBe >= (7)
      ^
    

  42. def mustBe(comparison: ResultOfLessThanOrEqualToComparison[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    5 mustBe <= (7)
      ^
    

  43. def mustBe(comparison: ResultOfGreaterThanComparison[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    8 mustBe > (7)
      ^
    

  44. def mustBe(comparison: ResultOfLessThanComparison[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    5 mustBe < (7)
      ^
    

  45. def mustBe(right: Any): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    aDouble mustBe 8.8
            ^
    

  46. def mustEqual(right: Null)(implicit ev: <:<[T, AnyRef]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustEqual null
           ^
    

  47. def mustEqual(spread: Spread[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustEqual 7.1 +- 0.2
           ^
    

  48. def mustEqual(right: Any)(implicit equality: Equality[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    a mustEqual b
      ^
    

  49. def mustNot(includeWord: IncludeWord)(implicit ev: <:<[T, String]): ResultOfIncludeWordForString

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string mustNot include regex ("hi")
           ^
    

  50. def mustNot(endWithWord: EndWithWord)(implicit ev: <:<[T, String]): ResultOfEndWithWordForString

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string mustNot endWith regex ("world")
           ^
    

  51. def mustNot(startWithWord: StartWithWord)(implicit ev: <:<[T, String]): ResultOfStartWithWordForString

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    string mustNot startWith regex ("hello")
           ^
    

  52. def mustNot(existWord: ExistWord)(implicit existence: Existence[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    file mustNot exist
         ^
    

  53. def mustNot(contain: ContainWord): ResultOfContainWord[T]

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    xs mustNot contain (oneOf (1, 2, 3))
       ^
    

  54. def mustNot(haveWord: HaveWord): ResultOfHaveWordForExtent[T]

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustNot have length (3)
           ^
    result mustNot have size (3)
           ^
    exception mustNot have message ("file not found")
              ^
    

  55. def mustNot[TYPECLASS1[_]](rightMatcherFactory1: MatcherFactory1[T, TYPECLASS1])(implicit typeClass1: TYPECLASS1[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustNot (be readable)
           ^
    

  56. def mustNot(rightMatcherX1: Matcher[T]): Assertion

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustNot (be (3))
           ^
    

  57. def mustNot(beWord: BeWord): ResultOfBeWordForAny[T]

    Permalink

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustNot be (3)
           ^
    

  58. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  59. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  61. val pos: Position

    Permalink
  62. val prettifier: Prettifier

    Permalink
  63. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  64. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  65. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped