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
- Alphabetic
- By Inheritance
- ArgumentMatchersSugar
- MacroBasedMatchers
- NumericMatchers
- FunctionMatchers
- NullMatchers
- StringThatMatchers
- ThatMatchers
- EqMatchers
- AnyMatchers
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
*[T]: T
- Definition Classes
- AnyMatchers
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
any[T]: T
- Definition Classes
- AnyMatchers
-
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
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
-
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
contains(substring: String): String
- Definition Classes
- StringThatMatchers
-
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 =: Equality[T]): T
- Definition Classes
- EqMatchers
-
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
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
floatThat(matcher: ArgumentMatcher[Float]): Float
- Definition Classes
- ThatMatchers
-
def
function0[T](value: T): () ⇒ T
- Definition Classes
- FunctionMatchers
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
Deprecated Value Members
-
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...