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. def asAny: Any

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

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

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

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

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

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

    Definition Classes
    Any
  15. def must(newContainWord: NewContainWord): ResultOfNewContainWord[T]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    map must contain key (10)
        ^
    

  16. def must(haveWord: HaveWord)(implicit ev: Extent[T]): 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)
           
    

  17. 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
           ^
    

  18. def must(inv: TripleEqualsInvocationOnInterval[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)
           ^
    

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

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    a must === (b)
           ^
    

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

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

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

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

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

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

  26. 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
                       ^
    

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

    This method enables the following syntax:

    This method enables the following syntax:

    list mustBe an ('empty)
         ^
    

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

    This method enables the following syntax:

    This method enables the following syntax:

    list mustBe a ('empty)
         ^
    

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

    This method enables the following syntax:

    This method enables the following syntax:

    list mustBe 'empty
         ^
    

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

    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]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe null
           ^
    

  32. def mustBe(interval: Interval[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe 7.1 +- 0.2
           ^
    

  33. 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
      ^
    

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

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

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

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

  38. def mustBe(right: T): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    aDouble mustBe 8.8
            ^
    

  39. 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
           ^
    

  40. def mustEqual(interval: Interval[T]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustEqual 7.1 +- 0.2
           ^
    

  41. 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
      ^
    

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

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

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

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

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

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

    Definition Classes
    AnyRef
  48. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped