Packages

trait ArgumentMatchersSugar extends AnyMatchers with EqMatchers with ThatMatchers with StringThatMatchers with NullMatchers with FunctionMatchers with NumericMatchers with MacroBasedMatchers

Trait that provides some syntax sugar and type mapping.

It mostly forwards the calls to org.mockito.ArgumentMatchers, but with a few improvements to make it more scala-like It also renames the "eq" matcher to "eqTo" as in Scala "eq" is a keyword used to do object identity equality

Linear Supertypes
MacroBasedMatchers, NumericMatchers, FunctionMatchers, NullMatchers, StringThatMatchers, ThatMatchers, EqMatchers, AnyMatchers, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ArgumentMatchersSugar
  2. MacroBasedMatchers
  3. NumericMatchers
  4. FunctionMatchers
  5. NullMatchers
  6. StringThatMatchers
  7. ThatMatchers
  8. EqMatchers
  9. AnyMatchers
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def *[T]: T
    Definition Classes
    AnyMatchers
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def any[T]: T
    Definition Classes
    AnyMatchers
  6. def anyBoolean: Boolean
    Definition Classes
    AnyMatchers
  7. def anyByte: Byte
    Definition Classes
    AnyMatchers
  8. def anyChar: Char
    Definition Classes
    AnyMatchers
  9. def anyDouble: Double
    Definition Classes
    AnyMatchers
  10. def anyFloat: Float
    Definition Classes
    AnyMatchers
  11. def anyInt: Int
    Definition Classes
    AnyMatchers
  12. def anyIterable[T]: Iterable[T]
    Definition Classes
    AnyMatchers
  13. def anyList[T]: List[T]
    Definition Classes
    AnyMatchers
  14. def anyLong: Long
    Definition Classes
    AnyMatchers
  15. def anyMap[K, V]: Map[K, V]
    Definition Classes
    AnyMatchers
  16. def anySeq[T]: Seq[T]
    Definition Classes
    AnyMatchers
  17. def anySet[T]: Set[T]
    Definition Classes
    AnyMatchers
  18. def anyShort: Short
    Definition Classes
    AnyMatchers
  19. def anyVal[T](implicit valueClassMatchers: ValueClassMatchers[T]): T

    Wraps the standard 'any' matcher on the value class provided, this one requires the type to be explicit

    Wraps the standard 'any' matcher on the value class provided, this one requires the type to be explicit

    Definition Classes
    MacroBasedMatchers
  20. def argThat[T](matcher: ArgumentMatcher[T]): T
    Definition Classes
    ThatMatchers
  21. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  22. def booleanThat(matcher: ArgumentMatcher[Boolean]): Boolean
    Definition Classes
    ThatMatchers
  23. def byteThat(matcher: ArgumentMatcher[Byte]): Byte
    Definition Classes
    ThatMatchers
  24. def charThat(matcher: ArgumentMatcher[Char]): Char
    Definition Classes
    ThatMatchers
  25. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  26. def contains(substring: String): String
    Definition Classes
    StringThatMatchers
  27. def doubleThat(matcher: ArgumentMatcher[Double]): Double
    Definition Classes
    ThatMatchers
  28. def endsWith(suffix: String): String
    Definition Classes
    StringThatMatchers
  29. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def eqTo[T](value: T)(implicit =: Equality[T]): T
    Definition Classes
    EqMatchers
  31. def eqToVal[T](value: Any)(implicit valueClassMatchers: ValueClassMatchers[T]): T

    Wraps the standard 'ArgumentMatchers.eq()' matcher on the value class provided, this one requires the type to be explicit

    Wraps the standard 'ArgumentMatchers.eq()' matcher on the value class provided, this one requires the type to be explicit

    Definition Classes
    MacroBasedMatchers
  32. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  33. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  34. def floatThat(matcher: ArgumentMatcher[Float]): Float
    Definition Classes
    ThatMatchers
  35. def function0[T](value: T): () ⇒ T
    Definition Classes
    FunctionMatchers
  36. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  37. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  38. def intThat(matcher: ArgumentMatcher[Int]): Int
    Definition Classes
    ThatMatchers
  39. def isA[T](implicit arg0: ClassTag[T]): T
    Definition Classes
    EqMatchers
  40. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  41. def longThat(matcher: ArgumentMatcher[Long]): Long
    Definition Classes
    ThatMatchers
  42. def matches(regex: String): String
    Definition Classes
    StringThatMatchers
  43. val n: N
    Definition Classes
    NumericMatchers
  44. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  46. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  47. def refEq[T](value: T, excludeFields: String*): T
    Definition Classes
    EqMatchers
  48. def same[T](value: T): T
    Definition Classes
    EqMatchers
  49. def shortThat(matcher: ArgumentMatcher[Short]): Short
    Definition Classes
    ThatMatchers
  50. def startsWith(prefix: String): String
    Definition Classes
    StringThatMatchers
  51. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  52. def toString(): String
    Definition Classes
    AnyRef → Any
  53. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Deprecated Value Members

  1. def isNotNull[T]: T
    Definition Classes
    NullMatchers
    Annotations
    @deprecated
    Deprecated

    (Since version 0.0.0) Using nulls in Scala? you naughty, naughty developer...

  2. def isNull[T]: T
    Definition Classes
    NullMatchers
    Annotations
    @deprecated
    Deprecated

    (Since version 0.0.0) Using nulls in Scala? you naughty, naughty developer...

Inherited from MacroBasedMatchers

Inherited from NumericMatchers

Inherited from FunctionMatchers

Inherited from NullMatchers

Inherited from StringThatMatchers

Inherited from ThatMatchers

Inherited from EqMatchers

Inherited from AnyMatchers

Inherited from AnyRef

Inherited from Any

Ungrouped