org.scalatest.Matchers

JavaMapShouldWrapper

final class JavaMapShouldWrapper[K, V, L[_, _] <: Map[_, _]] extends AnyShouldWrapper[L[K, V]]

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 should methods to be invoked on objects of type java.util.Map[K, V].

Linear Supertypes
AnyShouldWrapper[L[K, V]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JavaMapShouldWrapper
  2. AnyShouldWrapper
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JavaMapShouldWrapper(left: L[K, V])

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. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  17. def should(notWord: NotWord): ResultOfNotWordForJavaMap[K, V, L]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    javaMap should not have length (3)
            ^
    

    Definition Classes
    JavaMapShouldWrapperAnyShouldWrapper
  18. def should(containWord: ContainWord): ResultOfContainWordForJavaMap[K, V]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    javaMap should contain value (3)
            ^
    

  19. def should(newContainWord: NewContainWord): ResultOfNewContainWord[L[K, V]]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

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

    Definition Classes
    AnyShouldWrapper
  20. def should(haveWord: HaveWord): ResultOfHaveWordForExtent[L[K, V]]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result should have length (3)
           
    result should have size (3)
           
    

    Definition Classes
    AnyShouldWrapper
  21. def should(beWord: BeWord): ResultOfBeWordForAny[L[K, V]]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result should be a aMatcher
           ^
    

    Definition Classes
    AnyShouldWrapper
  22. def should(inv: TripleEqualsInvocationOnInterval[L[K, V]])(implicit ev: Numeric[L[K, V]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

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

    Definition Classes
    AnyShouldWrapper
  23. def should[U](inv: TripleEqualsInvocation[U])(implicit constraint: EqualityConstraint[L[K, V], U]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    a should === (b)
           ^
    

    Definition Classes
    AnyShouldWrapper
  24. def should[TYPECLASS1[_], TYPECLASS2[_]](rightMatcherFactory2: MatcherFactory2[L[K, V], TYPECLASS1, TYPECLASS2])(implicit typeClass1: TYPECLASS1[L[K, V]], typeClass2: TYPECLASS2[L[K, V]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

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

    Definition Classes
    AnyShouldWrapper
  25. def should[TYPECLASS1[_]](rightMatcherFactory1: MatcherFactory1[L[K, V], TYPECLASS1])(implicit typeClass1: TYPECLASS1[L[K, V]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result should equal (3)
           ^
    

    Definition Classes
    AnyShouldWrapper
  26. def should(rightMatcherX1: Matcher[L[K, V]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result should be (3)
           ^
    

    Definition Classes
    AnyShouldWrapper
  27. def shouldBe[U >: L[K, V]](resultOfAnWordApplication: ResultOfAnWordToBePropertyMatcherApplication[U])(implicit ev: <:<[L[K, V], 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 shouldBe an (excellentRead)
                       ^
    

    Definition Classes
    AnyShouldWrapper
  28. def shouldBe[U >: L[K, V]](resultOfAWordApplication: ResultOfAWordToBePropertyMatcherApplication[U])(implicit ev: <:<[L[K, V], 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 shouldBe a (goodRead)
                       ^
    

    Definition Classes
    AnyShouldWrapper
  29. def shouldBe(bePropertyMatcher: BePropertyMatcher[L[K, V]])(implicit ev: <:<[L[K, V], 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 shouldBe excellentRead
                       ^
    

    Definition Classes
    AnyShouldWrapper
  30. def shouldBe(resultOfAnWordApplication: ResultOfAnWordToSymbolApplication)(implicit ev: <:<[L[K, V], AnyRef]): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    list shouldBe an ('empty)
         ^
    

    Definition Classes
    AnyShouldWrapper
  31. def shouldBe(resultOfAWordApplication: ResultOfAWordToSymbolApplication)(implicit ev: <:<[L[K, V], AnyRef]): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    list shouldBe a ('empty)
         ^
    

    Definition Classes
    AnyShouldWrapper
  32. def shouldBe(symbol: Symbol)(implicit ev: <:<[L[K, V], AnyRef]): Unit

    This method enables the following syntax:

    This method enables the following syntax:

    list shouldBe 'empty
         ^
    

    Definition Classes
    AnyShouldWrapper
  33. def shouldBe(resultOfSameInstanceAsApplication: ResultOfTheSameInstanceAsApplication)(implicit ev: <:<[L[K, V], AnyRef]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result shouldBe theSameInstanceAs (anotherObject)
           ^
    

    Definition Classes
    AnyShouldWrapper
  34. def shouldBe(right: Null)(implicit ev: <:<[L[K, V], AnyRef]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result shouldBe null
           ^
    

    Definition Classes
    AnyShouldWrapper
  35. def shouldBe(interval: Interval[L[K, V]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result shouldBe 7.1 +- 0.2
           ^
    

    Definition Classes
    AnyShouldWrapper
  36. def shouldBe(beMatcher: BeMatcher[L[K, V]]): 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 shouldBe odd
      ^
    

    Definition Classes
    AnyShouldWrapper
  37. def shouldBe(comparison: ResultOfGreaterThanOrEqualToComparison[L[K, V]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    8 shouldBe >= (7)
      ^
    

    Definition Classes
    AnyShouldWrapper
  38. def shouldBe(comparison: ResultOfLessThanOrEqualToComparison[L[K, V]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    5 shouldBe <= (7)
      ^
    

    Definition Classes
    AnyShouldWrapper
  39. def shouldBe(comparison: ResultOfGreaterThanComparison[L[K, V]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    8 shouldBe > (7)
      ^
    

    Definition Classes
    AnyShouldWrapper
  40. def shouldBe(comparison: ResultOfLessThanComparison[L[K, V]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    5 shouldBe < (7)
      ^
    

    Definition Classes
    AnyShouldWrapper
  41. def shouldBe(right: L[K, V]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    aDouble shouldBe 8.8
            ^
    

    Definition Classes
    AnyShouldWrapper
  42. def shouldEqual(right: Null)(implicit ev: <:<[L[K, V], AnyRef]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result shouldEqual null
           ^
    

    Definition Classes
    AnyShouldWrapper
  43. def shouldEqual(interval: Interval[L[K, V]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result shouldEqual 7.1 +- 0.2
           ^
    

    Definition Classes
    AnyShouldWrapper
  44. def shouldEqual(right: Any)(implicit equality: Equality[L[K, V]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    a shouldEqual b
      ^
    

    Definition Classes
    AnyShouldWrapper
  45. def shouldNot(rightMatcherX1: Matcher[L[K, V]]): Unit

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result shouldNot (be (3))
           ^
    

    Definition Classes
    AnyShouldWrapper
  46. def shouldNot(beWord: BeWord): ResultOfBeWordForAny[L[K, V]]

    This method enables syntax such as the following:

    This method enables syntax such as the following:

    result shouldNot be (3)
           ^
    

    Definition Classes
    AnyShouldWrapper
  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 AnyShouldWrapper[L[K, V]]

Inherited from AnyRef

Inherited from Any

Ungrouped