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
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
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
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
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
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
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
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]()
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]()
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
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]()
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]()
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]()
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
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
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
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
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
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
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
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
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
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
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
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
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
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])
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
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
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
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
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
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
Delegates to Mockito.withSettings()
, it's only here to expose the full Mockito API
Delegates to Mockito.withSettings()
, it's only here to expose the full Mockito API
The parameterless execute method has been deprecated and will be removed in a future version of ScalaTest. Please invoke execute with empty parens instead: execute().
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
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
The trap method is no longer needed for demos in the REPL, which now abreviates stack traces, and will be removed in a future version of ScalaTest
It automatically wraps each test in a MockitoScalaSession so the implicit verifications are applied
Just mix-in after your favourite suite, i.e.