Object/Trait

org.mockito

ArgumentMatchersSugar

Related Docs: trait ArgumentMatchersSugar | package mockito

Permalink

object ArgumentMatchersSugar extends ArgumentMatchersSugar

Simple object to allow the usage of the trait without mixing it in

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

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def any[T]: T

    Permalink

    Delegates to ArgumentMatchers.any(), it's main purpose is to remove the () out of the method call, if you try to do that directly on the test you get this error

    Delegates to ArgumentMatchers.any(), it's main purpose is to remove the () out of the method call, if you try to do that directly on the test you get this error

    Error:(71, 46) polymorphic expression cannot be instantiated to expected type; found : [T]()T required: String when you try to something like ArgumentMatchers.any

    Definition Classes
    AnyMatchers
  5. def anyBoolean: Boolean

    Permalink

    Delegates to ArgumentMatchers.anyBoolean(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyBoolean(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  6. def anyByte: Byte

    Permalink

    Delegates to ArgumentMatchers.anyByte(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyByte(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  7. def anyChar: Char

    Permalink

    Delegates to ArgumentMatchers.anyChar(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyChar(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  8. def anyDouble: Double

    Permalink

    Delegates to ArgumentMatchers.anyDouble(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyDouble(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  9. def anyFloat: Float

    Permalink

    Delegates to ArgumentMatchers.anyFloat(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyFloat(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  10. def anyInt: Int

    Permalink

    Delegates to ArgumentMatchers.anyInt(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyInt(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  11. def anyIterable[T]: Iterable[T]

    Permalink

    Iterable matcher that use Scala Iterable to avoid compile errors like Error:(40, 60) type mismatch; found : Iterable[String] (in java.util) required: Iterable[?] (in scala.collection.immutable)

    Iterable matcher that use Scala Iterable to avoid compile errors like Error:(40, 60) type mismatch; found : Iterable[String] (in java.util) required: Iterable[?] (in scala.collection.immutable)

    when trying to do something like ArgumentMatchers.anyIterable[String]()

    Definition Classes
    AnyMatchers
  12. def anyList[T]: List[T]

    Permalink

    List matcher that use Scala List to avoid compile errors like Error:(40, 60) type mismatch; found : List[String] (in java.util) required: List[?] (in scala.collection.immutable)

    List matcher that use Scala List to avoid compile errors like Error:(40, 60) type mismatch; found : List[String] (in java.util) required: List[?] (in scala.collection.immutable)

    when trying to do something like ArgumentMatchers.anyList[String]()

    Definition Classes
    AnyMatchers
  13. def anyLong: Long

    Permalink

    Delegates to ArgumentMatchers.anyLong(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyLong(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  14. def anyMap[K, V]: Map[K, V]

    Permalink

    Map matcher that use Scala Map to avoid compile errors like Error:(40, 60) type mismatch; found : Map[String, String] (in java.util) required: Map[?] (in scala.collection.immutable)

    Map matcher that use Scala Map to avoid compile errors like Error:(40, 60) type mismatch; found : Map[String, String] (in java.util) required: Map[?] (in scala.collection.immutable)

    when trying to do something like ArgumentMatchers.anyMap[String, String]()

    Definition Classes
    AnyMatchers
  15. def anySeq[T]: Seq[T]

    Permalink

    Seq matcher that use Scala Seq to avoid compile errors like Error:(40, 60) type mismatch; found : List[String] (in java.util) required: Seq[?] (in scala.collection.immutable)

    Seq matcher that use Scala Seq to avoid compile errors like Error:(40, 60) type mismatch; found : List[String] (in java.util) required: Seq[?] (in scala.collection.immutable)

    when trying to do something like ArgumentMatchers.anyList[String]()

    Definition Classes
    AnyMatchers
  16. def anySet[T]: Set[T]

    Permalink

    Set matcher that use Scala Set to avoid compile errors like Error:(40, 60) type mismatch; found : Set[String] (in java.util) required: Set[?] (in scala.collection.immutable)

    Set matcher that use Scala Set to avoid compile errors like Error:(40, 60) type mismatch; found : Set[String] (in java.util) required: Set[?] (in scala.collection.immutable)

    when trying to do something like ArgumentMatchers.anySet[String]()

    Definition Classes
    AnyMatchers
  17. def anyShort: Short

    Permalink

    Delegates to ArgumentMatchers.anyShort(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyShort(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  18. def anyVal[T](implicit valueClassMatchers: ValueClassMatchers[T]): T

    Permalink

    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
    AnyMatchers
  19. def argThat[T](matcher: ArgumentMatcher[T]): T

    Permalink

    Delegates to ArgumentMatchers.argThat(matcher), it's only here so we expose all the ArgumentMatchers on a single place

    Delegates to ArgumentMatchers.argThat(matcher), it's only here so we expose all the ArgumentMatchers on a single place

    Definition Classes
    ThatMatchers
  20. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  21. def booleanThat(matcher: ArgumentMatcher[Boolean]): Boolean

    Permalink

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Definition Classes
    ThatMatchers
  22. def byteThat(matcher: ArgumentMatcher[Byte]): Byte

    Permalink

    Delegates the call to argThat but using the Scala "primitives", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Delegates the call to argThat but using the Scala "primitives", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Definition Classes
    ThatMatchers
  23. def charThat(matcher: ArgumentMatcher[Char]): Char

    Permalink

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Definition Classes
    ThatMatchers
  24. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def contains(substring: String): String

    Permalink

    Delegates to ArgumentMatchers.contains(), it's only here so we expose all the ArgumentMatchers on a single place

    Delegates to ArgumentMatchers.contains(), it's only here so we expose all the ArgumentMatchers on a single place

    Definition Classes
    StringThatMatchers
  26. def doubleThat(matcher: ArgumentMatcher[Double]): Double

    Permalink

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Definition Classes
    ThatMatchers
  27. def endsWith(suffix: String): String

    Permalink

    Delegates to ArgumentMatchers.endsWith(), it's only here so we expose all the ArgumentMatchers on a single place

    Delegates to ArgumentMatchers.endsWith(), it's only here so we expose all the ArgumentMatchers on a single place

    Definition Classes
    StringThatMatchers
  28. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. def eqTo[T](value: T): T

    Permalink

    Delegates to ArgumentMatchers.eq(), it renames the method to eqTo to avoid clashes with the Scala eq method used for reference equality

    Delegates to ArgumentMatchers.eq(), it renames the method to eqTo to avoid clashes with the Scala eq method used for reference equality

    Definition Classes
    EqMatchers
  30. def eqToVal[T](value: Any)(implicit valueClassMatchers: ValueClassMatchers[T]): T

    Permalink

    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
    EqMatchers
  31. def equals(arg0: Any): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. def floatThat(matcher: ArgumentMatcher[Float]): Float

    Permalink

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Definition Classes
    ThatMatchers
  34. def function0[T](value: T): () ⇒ T

    Permalink
    Definition Classes
    FunctionMatchers
  35. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  37. def intThat(matcher: ArgumentMatcher[Int]): Int

    Permalink

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Definition Classes
    ThatMatchers
  38. def isA[T](implicit classTag: ClassTag[T]): T

    Permalink

    Delegates to ArgumentMatchers.isA(type: Class[T]) It provides a nicer API as you can, for instance, do isA[String] instead of isA(classOf[String])

    Delegates to ArgumentMatchers.isA(type: Class[T]) It provides a nicer API as you can, for instance, do isA[String] instead of isA(classOf[String])

    Definition Classes
    EqMatchers
  39. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  40. def longThat(matcher: ArgumentMatcher[Long]): Long

    Permalink

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary conversion that would be necessary used the Java version

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary conversion that would be necessary used the Java version

    Definition Classes
    ThatMatchers
  41. def matches(regex: String): String

    Permalink

    Delegates to ArgumentMatchers.matches(), it's only here so we expose all the ArgumentMatchers on a single place

    Delegates to ArgumentMatchers.matches(), it's only here so we expose all the ArgumentMatchers on a single place

    Definition Classes
    StringThatMatchers
  42. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  43. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  44. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  45. def refEq[T](value: T, excludeFields: String*): T

    Permalink

    Delegates to ArgumentMatchers.refEq(), it's only here so we expose all the ArgumentMatchers on a single place

    Delegates to ArgumentMatchers.refEq(), it's only here so we expose all the ArgumentMatchers on a single place

    Definition Classes
    EqMatchers
  46. def same[T](value: T): T

    Permalink

    Delegates to ArgumentMatchers.same(), it's only here so we expose all the ArgumentMatchers on a single place

    Delegates to ArgumentMatchers.same(), it's only here so we expose all the ArgumentMatchers on a single place

    Definition Classes
    EqMatchers
  47. def shortThat(matcher: ArgumentMatcher[Short]): Short

    Permalink

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Definition Classes
    ThatMatchers
  48. def startsWith(prefix: String): String

    Permalink

    Delegates to ArgumentMatchers.startsWith(), it's only here so we expose all the ArgumentMatchers on a single place

    Delegates to ArgumentMatchers.startsWith(), it's only here so we expose all the ArgumentMatchers on a single place

    Definition Classes
    StringThatMatchers
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  50. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def isNotNull[T]: T

    Permalink

    Delegates to ArgumentMatchers.isNotNull(), it's only here so we expose all the ArgumentMatchers on a single place, but marked as @deprecated as you shouldn't be testing for nulls on Scala

    Delegates to ArgumentMatchers.isNotNull(), it's only here so we expose all the ArgumentMatchers on a single place, but marked as @deprecated as you shouldn't be testing for nulls on Scala

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

    Permalink

    Delegates to ArgumentMatchers.isNull(), it's only here so we expose all the ArgumentMatchers on a single place, but marked as @deprecated as you shouldn't be testing for nulls on Scala

    Delegates to ArgumentMatchers.isNull(), it's only here so we expose all the ArgumentMatchers on a single place, but marked as @deprecated as you shouldn't be testing for nulls on Scala

    Definition Classes
    NullMatchers
    Annotations
    @deprecated
    Deprecated

Inherited from ArgumentMatchersSugar

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