object ArgumentMatchersSugar extends ArgumentMatchersSugar
Simple object to allow the usage of the trait without mixing it in
- Alphabetic
- By Inheritance
- ArgumentMatchersSugar
- ArgumentMatchersSugar
- MacroBasedMatchers
- NumericMatchers
- Tolerance
- FunctionMatchers
- NullMatchers
- StringThatMatchers
- ThatMatchers
- EqMatchers_VersionSpecific
- EqMatchers
- AnyMatchers
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final class PlusOrMinusWrapper[T] extends AnyRef
- Definition Classes
- Tolerance
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def *[T](implicit arg0: AnyMatcher[T]): T
Alias for org.mockito.matchers.MacroBasedMatchers.any
- Definition Classes
- MacroBasedMatchers
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def any[T](implicit arg0: AnyMatcher[T]): T
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 errorDelegates 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 errorError:(71, 46) polymorphic expression cannot be instantiated to expected type; found : [T]()T required: String when you try to something like ArgumentMatchers.any
It also fixes the NullPointerException when used on an value class argument (IMPORTANT: YOU MUST PROVIDE THE TYPE FOR VALUE CLASSES)
- Definition Classes
- MacroBasedMatchers
- def anyBoolean: Boolean
- Definition Classes
- AnyMatchers
- def anyByte: Byte
- Definition Classes
- AnyMatchers
- def anyChar: Char
- Definition Classes
- AnyMatchers
- def anyDouble: Double
- Definition Classes
- AnyMatchers
- def anyFloat: Float
- Definition Classes
- AnyMatchers
- def anyInt: Int
- Definition Classes
- AnyMatchers
- def anyIterable[T]: Iterable[T]
- Definition Classes
- AnyMatchers
- def anyList[T]: List[T]
- Definition Classes
- AnyMatchers
- def anyLong: Long
- Definition Classes
- AnyMatchers
- def anyMap[K, V]: Map[K, V]
- Definition Classes
- AnyMatchers
- def anySeq[T]: Seq[T]
- Definition Classes
- AnyMatchers
- def anySet[T]: Set[T]
- Definition Classes
- AnyMatchers
- def anyShort: Short
- Definition Classes
- AnyMatchers
- def argMatching[T](pf: PartialFunction[Any, Unit]): T
- Definition Classes
- ThatMatchers
- def argThat[T](f: (T) => Boolean, desc: => String): T
- Definition Classes
- ThatMatchers
- def argThat[T](matcher: ArgumentMatcher[T]): T
- Definition Classes
- ThatMatchers
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def booleanThat(matcher: ArgumentMatcher[Boolean]): Boolean
- Definition Classes
- ThatMatchers
- def byteThat(matcher: ArgumentMatcher[Byte]): Byte
- Definition Classes
- ThatMatchers
- def charThat(matcher: ArgumentMatcher[Char]): Char
- Definition Classes
- ThatMatchers
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def contains(substring: String): String
- Definition Classes
- StringThatMatchers
- implicit def convertNumericToPlusOrMinusWrapper[T](pivot: T)(implicit arg0: Numeric[T]): PlusOrMinusWrapper[T]
- Definition Classes
- Tolerance
- def doubleThat(matcher: ArgumentMatcher[Double]): Double
- Definition Classes
- ThatMatchers
- def endsWith(suffix: String): String
- Definition Classes
- StringThatMatchers
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def eqTo[T](value: T)(implicit arg0: Equality[T], arg1: ValueClassExtractor[T], arg2: Prettifier): T
Creates a matcher that delegates on {{org.scalactic.Equality}} so you can always customise how the values are compared Also works with value classes
Creates a matcher that delegates on {{org.scalactic.Equality}} so you can always customise how the values are compared Also works with value classes
- Definition Classes
- EqMatchers_VersionSpecific
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def floatThat(matcher: ArgumentMatcher[Float]): Float
- Definition Classes
- ThatMatchers
- def function0[T](value: T): () => T
- Definition Classes
- FunctionMatchers
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def intThat(matcher: ArgumentMatcher[Int]): Int
- Definition Classes
- ThatMatchers
- def isA[T](implicit arg0: ClassTag[T]): T
- Definition Classes
- EqMatchers
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def longThat(matcher: ArgumentMatcher[Long]): Long
- Definition Classes
- ThatMatchers
- def matches(regex: String): String
- Definition Classes
- StringThatMatchers
- val n: N
- Definition Classes
- NumericMatchers
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def refEq[T](value: T, excludeFields: String*): T
- Definition Classes
- EqMatchers
- def same[T](value: T): T
- Definition Classes
- EqMatchers
- def shortThat(matcher: ArgumentMatcher[Short]): Short
- Definition Classes
- ThatMatchers
- def startsWith(prefix: String): String
- Definition Classes
- StringThatMatchers
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def anyVal[T](implicit arg0: AnyMatcher[T]): T
It was intended to be used instead of any when the argument is a value class, but any now supports value classes so it is not needed anymore
It was intended to be used instead of any when the argument is a value class, but any now supports value classes so it is not needed anymore
- Definition Classes
- MacroBasedMatchers
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.2) Use 'any[T]' or '*[T]' instead
- def eqToVal[T](value: T)(implicit arg0: Equality[T], arg1: ValueClassExtractor[T], arg2: Prettifier): T
It was intended to be used instead of eqTo when the argument is a value class, but eqTo now supports value classes so it is not needed anymore
It was intended to be used instead of eqTo when the argument is a value class, but eqTo now supports value classes so it is not needed anymore
- Definition Classes
- EqMatchers_VersionSpecific
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.2) Use 'eqTo' instead
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
- def isNotNull[T]: T
- Definition Classes
- NullMatchers
- Annotations
- @deprecated
- Deprecated
(Since version 0.0.0) Using nulls in Scala? you naughty, naughty developer...
- def isNull[T]: T
- Definition Classes
- NullMatchers
- Annotations
- @deprecated
- Deprecated
(Since version 0.0.0) Using nulls in Scala? you naughty, naughty developer...