org.scalatest.matchers.MustMatchers

AnyMustWrapper

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.

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AnyMustWrapper(left: T)

Value Members

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

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

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

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

    Definition Classes
    Any
  14. def must(notExist: ResultOfNotExist)(implicit existence: Existence[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    file must not (exist)
         ^
    

  15. def must(existWord: ExistWord)(implicit existence: Existence[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    file must exist
         ^
    

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

    This method enables syntax such as the following:

    This method enables syntax such as the following:

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

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

    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)
           
    

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

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result must be a aMatcher
           ^
    

  19. def must(inv: TripleEqualsInvocationOnSpread[T])(implicit ev: Numeric[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

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

  20. def must[U](inv: TripleEqualsInvocation[U])(implicit constraint: Constraint[T, U]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    a must === (b)
           ^
    

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

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result must not equal (3)
           ^
    

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

    This method enables syntax such as the following:

    This method enables syntax such as the following:

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

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

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result must equal (3)
           ^
    

  24. def must(rightMatcherX1: Matcher[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result must be (3)
           ^
    

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

    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)
                       ^
    

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

    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)
                       ^
    

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

    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
                       ^
    

  28. def mustBe(resultOfAnWordApplication: ResultOfAnWordToSymbolApplication)(implicit toAnyRef: <:<[T, AnyRef]): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    list mustBe an ('empty)
         ^
    

  29. def mustBe(resultOfAWordApplication: ResultOfAWordToSymbolApplication)(implicit toAnyRef: <:<[T, AnyRef]): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    list mustBe a ('empty)
         ^
    

  30. def mustBe(symbol: Symbol)(implicit toAnyRef: <:<[T, AnyRef]): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    list mustBe 'empty
         ^
    

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

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe theSameInstanceAs (anotherObject)
           ^
    

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

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe null
           ^
    

  33. def mustBe(right: DefinedWord)(implicit definition: Definition[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe defined
           ^
    

  34. def mustBe(right: EmptyWord)(implicit emptiness: Emptiness[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe empty
           ^
    

  35. def mustBe(right: WritableWord)(implicit writability: Writability[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe writable
           ^
    

  36. def mustBe(right: ReadableWord)(implicit readability: Readability[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe readable
           ^
    

  37. def mustBe(anType: ResultOfAnTypeInvocation[_]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    aDouble mustBe an [Book]
            ^
    

  38. def mustBe(aType: ResultOfATypeInvocation[_]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    aDouble mustBe a [Book]
            ^
    

  39. def mustBe(right: SortedWord)(implicit sortable: Sortable[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe sorted
           ^
    

  40. def mustBe(spread: Spread[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe 7.1 +- 0.2
           ^
    

  41. def mustBe(beMatcher: BeMatcher[T]): Unit

    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
      ^
    

  42. def mustBe(comparison: ResultOfGreaterThanOrEqualToComparison[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    8 mustBe >= (7)
      ^
    

  43. def mustBe(comparison: ResultOfLessThanOrEqualToComparison[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    5 mustBe <= (7)
      ^
    

  44. def mustBe(comparison: ResultOfGreaterThanComparison[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    8 mustBe > (7)
      ^
    

  45. def mustBe(comparison: ResultOfLessThanComparison[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    5 mustBe < (7)
      ^
    

  46. def mustBe(right: Any): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    aDouble mustBe 8.8
            ^
    

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

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustEqual null
           ^
    

  48. def mustEqual(spread: Spread[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustEqual 7.1 +- 0.2
           ^
    

  49. def mustEqual(right: Any)(implicit equality: Equality[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    a mustEqual b
      ^
    

  50. def mustNot(existWord: ExistWord)(implicit existence: Existence[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    file mustNot exist
         ^
    

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

    This method enables syntax such as the following:

    This method enables syntax such as the following:

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

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

    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")
              ^
    

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

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustNot (be readable)
           ^
    

  54. def mustNot(rightMatcherX1: Matcher[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustNot (be (3))
           ^
    

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

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustNot be (3)
           ^
    

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

    Definition Classes
    AnyRef
  57. final def notify(): Unit

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

    Definition Classes
    AnyRef
  59. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  60. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped