org.scalatest.matchers.MustMatchers

ArrayMustWrapper

final class ArrayMustWrapper[E] extends AnyMustWrapper[Array[E]]

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 scala.Array[T].

Linear Supertypes
AnyMustWrapper[Array[E]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ArrayMustWrapper
  2. AnyMustWrapper
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ArrayMustWrapper(left: Array[E])

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(notWord: NotWord): ResultOfNotWordForArray[E]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    array must not have length (3)
          ^
    

    Definition Classes
    ArrayMustWrapperAnyMustWrapper
  15. def must(containWord: ContainWord): ResultOfContainWordForTraversable[E]

    This method enables syntax such as the following, where positiveNumber is a AMatcher:

    This method enables syntax such as the following, where positiveNumber is a AMatcher:

    array must contain a positiveNumber
          ^
    

  16. def must(newContainWord: NewContainWord): ResultOfNewContainWord[Array[E]]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

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

    Definition Classes
    AnyMustWrapper
  17. def must(haveWord: HaveWord): ResultOfHaveWordForExtent[Array[E]]

    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)
           
    

    Definition Classes
    AnyMustWrapper
  18. def must(beWord: BeWord): ResultOfBeWordForAny[Array[E]]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result must be a aMatcher
           ^
    

    Definition Classes
    AnyMustWrapper
  19. def must(inv: TripleEqualsInvocationOnInterval[Array[E]])(implicit ev: Numeric[Array[E]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

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

    Definition Classes
    AnyMustWrapper
  20. def must[U](inv: TripleEqualsInvocation[U])(implicit constraint: EqualityConstraint[Array[E], U]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    a must === (b)
           ^
    

    Definition Classes
    AnyMustWrapper
  21. def must[TYPECLASS1[_], TYPECLASS2[_]](rightMatcherFactory2: MatcherFactory2[Array[E], TYPECLASS1, TYPECLASS2])(implicit typeClass1: TYPECLASS1[Array[E]], typeClass2: TYPECLASS2[Array[E]]): 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)
           ^
    

    Definition Classes
    AnyMustWrapper
  22. def must[TYPECLASS1[_]](rightMatcherFactory1: MatcherFactory1[Array[E], TYPECLASS1])(implicit typeClass1: TYPECLASS1[Array[E]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result must equal (3)
           ^
    

    Definition Classes
    AnyMustWrapper
  23. def must(rightMatcherX1: Matcher[Array[E]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result must be (3)
           ^
    

    Definition Classes
    AnyMustWrapper
  24. def mustBe[U >: Array[E]](resultOfAnWordApplication: ResultOfAnWordToBePropertyMatcherApplication[U])(implicit ev: <:<[Array[E], 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)
                       ^
    

    Definition Classes
    AnyMustWrapper
  25. def mustBe[U >: Array[E]](resultOfAWordApplication: ResultOfAWordToBePropertyMatcherApplication[U])(implicit ev: <:<[Array[E], 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)
                       ^
    

    Definition Classes
    AnyMustWrapper
  26. def mustBe(bePropertyMatcher: BePropertyMatcher[Array[E]])(implicit ev: <:<[Array[E], 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
                       ^
    

    Definition Classes
    AnyMustWrapper
  27. def mustBe(resultOfAnWordApplication: ResultOfAnWordToSymbolApplication)(implicit ev: <:<[Array[E], AnyRef]): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    list mustBe an ('empty)
         ^
    

    Definition Classes
    AnyMustWrapper
  28. def mustBe(resultOfAWordApplication: ResultOfAWordToSymbolApplication)(implicit ev: <:<[Array[E], AnyRef]): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    list mustBe a ('empty)
         ^
    

    Definition Classes
    AnyMustWrapper
  29. def mustBe(symbol: Symbol)(implicit ev: <:<[Array[E], AnyRef]): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    list mustBe 'empty
         ^
    

    Definition Classes
    AnyMustWrapper
  30. def mustBe(resultOfSameInstanceAsApplication: ResultOfTheSameInstanceAsApplication)(implicit ev: <:<[Array[E], AnyRef]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe theSameInstanceAs (anotherObject)
           ^
    

    Definition Classes
    AnyMustWrapper
  31. def mustBe(right: Null)(implicit ev: <:<[Array[E], AnyRef]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe null
           ^
    

    Definition Classes
    AnyMustWrapper
  32. def mustBe(interval: Interval[Array[E]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustBe 7.1 +- 0.2
           ^
    

    Definition Classes
    AnyMustWrapper
  33. def mustBe(beMatcher: BeMatcher[Array[E]]): 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
      ^
    

    Definition Classes
    AnyMustWrapper
  34. def mustBe(comparison: ResultOfGreaterThanOrEqualToComparison[Array[E]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    8 mustBe >= (7)
      ^
    

    Definition Classes
    AnyMustWrapper
  35. def mustBe(comparison: ResultOfLessThanOrEqualToComparison[Array[E]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    5 mustBe <= (7)
      ^
    

    Definition Classes
    AnyMustWrapper
  36. def mustBe(comparison: ResultOfGreaterThanComparison[Array[E]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    8 mustBe > (7)
      ^
    

    Definition Classes
    AnyMustWrapper
  37. def mustBe(comparison: ResultOfLessThanComparison[Array[E]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    5 mustBe < (7)
      ^
    

    Definition Classes
    AnyMustWrapper
  38. def mustBe(right: Array[E]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    aDouble mustBe 8.8
            ^
    

    Definition Classes
    AnyMustWrapper
  39. def mustEqual(right: Null)(implicit ev: <:<[Array[E], AnyRef]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustEqual null
           ^
    

    Definition Classes
    AnyMustWrapper
  40. def mustEqual(interval: Interval[Array[E]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustEqual 7.1 +- 0.2
           ^
    

    Definition Classes
    AnyMustWrapper
  41. def mustEqual(right: Any)(implicit equality: Equality[Array[E]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    a mustEqual b
      ^
    

    Definition Classes
    AnyMustWrapper
  42. def mustNot(rightMatcherX1: Matcher[Array[E]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustNot (be (3))
           ^
    

    Definition Classes
    AnyMustWrapper
  43. def mustNot(beWord: BeWord): ResultOfBeWordForAny[Array[E]]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result mustNot be (3)
           ^
    

    Definition Classes
    AnyMustWrapper
  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 AnyMustWrapper[Array[E]]

Inherited from AnyRef

Inherited from Any

Ungrouped