object Mockito extends Mockito
- Alphabetic
- By Inheritance
- Mockito
- Mockito
- MockitoFunctions
- MockitoMatchers
- CapturedArgument
- MockitoStubs
- MockitoStubsLowerImplicits
- CalledMatchers
- FunctionArguments
- FunctionArgumentsLowImplicits
- Expectations
- ExpectationsDescription
- TypedEqual
- ExpectationsCreation
- MatchResultStackTrace
- ArgThat
- NumberOfTimes
- MocksCreation
- ClassesOf
- TheMockitoMocker
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
Descriptible[T] extends AnyRef
- Definition Classes
- ExpectationsDescription
-
class
ExpectationDescription extends AnyRef
- Definition Classes
- ExpectationsDescription
-
class
TypedEqualExpectation[T] extends AnyRef
- Definition Classes
- TypedEqual
-
class
Calls
extends AnyRef
class supporting 'was' and 'were' methods to forward mockito calls to the CallsMatcher matcher
class supporting 'was' and 'were' methods to forward mockito calls to the CallsMatcher matcher
- Definition Classes
- CalledMatchers
-
case class
MockitoVerificationWithTimeout
(duration: Duration) extends Product with Serializable
- Definition Classes
- CalledMatchers
-
implicit
class
TimesCall
extends AnyRef
class providing a apply method to be able to declare a number of calls: 3.times(m).clear() is actually 3.times.apply(m).clear()
class providing a apply method to be able to declare a number of calls: 3.times(m).clear() is actually 3.times.apply(m).clear()
- Definition Classes
- CalledMatchers
-
class
ToInOrderMode
[T] extends AnyRef
class defining a then method to declare that calls must be made in a specific order.
class defining a then method to declare that calls must be made in a specific order.
The orderedBy method can be used to declare the mock order if there are several mocks
- Definition Classes
- CalledMatchers
-
class
AStubber
[T] extends AnyRef
provide stub chain methods.
provide stub chain methods.
- Definition Classes
- MockitoStubs
-
class
AnOngoingStubbing
[T] extends AnyRef
provide stub chain methods.
provide stub chain methods.
- Definition Classes
- MockitoStubs
-
class
MockAnswer
[T] extends Answer[T]
This class is an implementation of the Answer interface allowing to pass functions as an answer.
This class is an implementation of the Answer interface allowing to pass functions as an answer.
It does a bit of work for the client:
// if the method has one parameter and the function also, the parameter is passed mock.get(0) answers ( i => i.toString )
// if the method has one parameter and the function has two, the mock is passed as the second argument mock.get(0) answers { (i, mock) => i.toString + " for mock " + mock.toString }
Similarly a mocked method with no parameters can use a function with one parameter. In that case, the mock will be passed mock.size answers { mock => mock.hashCode }
In any other cases, if f is a function of 1 parameter, the array of the method parameters will be passed and if the function has 2 parameters, the second one will be the mock.
- Definition Classes
- MockitoStubs
-
class
MockAnswer2
[T] extends Answer[T]
in this case we suppose that the second expected parameter is the mock instance
in this case we suppose that the second expected parameter is the mock instance
- Definition Classes
- MockitoStubs
-
class
Stubbed
[T] extends AnyRef
This class provide stub methods like returns, throws and answers.
This class provide stub methods like returns, throws and answers. Internally it calls Mockito.when(mock call).thenReturn(returnValue)
- Definition Classes
- MockitoStubs
-
case class
MockProperty
[T](p: Property[T] = Property[T]()) extends Product with Serializable
- Definition Classes
- MocksCreation
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
def
aStubber(stub: ⇒ Stubber): AStubber[Nothing]
- returns
an object allowing the chaining of returned values on doNothing calls.
- Definition Classes
- MockitoStubs
-
def
after(duration: Duration): MockitoVerificationWithTimeout
add a timeout constraint to the verification
add a timeout constraint to the verification
- Definition Classes
- CalledMatchers
-
def
anArgThat[T, U <: T](m: Matcher[U]): T
allows to use a hamcrest matchers to match parameters.
allows to use a hamcrest matchers to match parameters.
- Definition Classes
- ArgThat
-
implicit
def
anOngoingStubbing[T](stub: ⇒ OngoingStubbing[T]): AnOngoingStubbing[T]
- returns
an object allowing the chaining of stub values.
- Definition Classes
- MockitoStubs
-
def
any[T](): T
- Definition Classes
- MockitoMatchers
-
def
any[T](implicit arg0: ClassTag[T]): T
- Definition Classes
- MockitoMatchers
-
def
anyBoolean: Boolean
- Definition Classes
- MockitoMatchers
-
def
anyByte: Byte
- Definition Classes
- MockitoMatchers
-
def
anyChar: Char
- Definition Classes
- MockitoMatchers
-
def
anyDouble: Double
- Definition Classes
- MockitoMatchers
-
def
anyFloat: Float
- Definition Classes
- MockitoMatchers
-
def
anyFunction0[R]: () ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction1[T1, R]: (T1) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction2[T1, T2, R]: (T1, T2) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction3[T1, T2, T3, R]: (T1, T2, T3) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction4[T1, T2, T3, T4, R]: (T1, T2, T3, T4) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction5[T1, T2, T3, T4, T5, R]: (T1, T2, T3, T4, T5) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction6[T1, T2, T3, T4, T5, T6, R]: (T1, T2, T3, T4, T5, T6) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction7[T1, T2, T3, T4, T5, T6, T7, R]: (T1, T2, T3, T4, T5, T6, T7) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction8[T1, T2, T3, T4, T5, T6, T7, T8, R]: (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyFunction9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ R
- Definition Classes
- MockitoMatchers
-
def
anyInt: Int
- Definition Classes
- MockitoMatchers
-
def
anyJavaCollection: Collection[Nothing]
- Definition Classes
- MockitoMatchers
-
def
anyJavaCollectionOf[T](implicit arg0: ClassTag[T]): Collection[_]
- Definition Classes
- MockitoMatchers
-
def
anyJavaList: List[Nothing]
- Definition Classes
- MockitoMatchers
-
def
anyJavaListOf[T](implicit arg0: ClassTag[T]): List[_]
- Definition Classes
- MockitoMatchers
-
def
anyJavaMap: Map[Nothing, Nothing]
- Definition Classes
- MockitoMatchers
-
def
anyJavaMapOf[K, V](implicit arg0: ClassTag[K], arg1: ClassTag[V]): Map[_, _]
- Definition Classes
- MockitoMatchers
-
def
anyJavaSet: Set[Nothing]
- Definition Classes
- MockitoMatchers
-
def
anyJavaSetOf[T](implicit arg0: ClassTag[T]): Set[_]
- Definition Classes
- MockitoMatchers
-
def
anyList: List[Any]
- Definition Classes
- MockitoMatchers
-
def
anyListOf[T](implicit arg0: ClassTag[T]): List[T]
- Definition Classes
- MockitoMatchers
-
def
anyLong: Long
- Definition Classes
- MockitoMatchers
-
def
anyMap: Map[_, Any]
- Definition Classes
- MockitoMatchers
-
def
anyMapOf[K, V](implicit arg0: ClassTag[K], arg1: ClassTag[V]): Map[K, V]
- Definition Classes
- MockitoMatchers
-
def
anyObject[T]: T
- Definition Classes
- MockitoMatchers
-
def
anyPartialFunction[T, R]: PartialFunction[T, R]
- Definition Classes
- MockitoMatchers
-
def
anySet: Set[_]
- Definition Classes
- MockitoMatchers
-
def
anySetOf[T](implicit arg0: ClassTag[T]): Set[T]
- Definition Classes
- MockitoMatchers
-
def
anyShort: Short
- Definition Classes
- MockitoMatchers
-
def
anyString: String
- Definition Classes
- MockitoMatchers
-
implicit
def
anyToMockProperty[T](t: ⇒ T): MockProperty[T]
this implicit helps with defining optional values for mockito settings
this implicit helps with defining optional values for mockito settings
- Definition Classes
- MocksCreation
-
def
anyTraversable: Traversable[Any]
- Definition Classes
- MockitoMatchers
-
def
anyTraversableOf[T](implicit arg0: ClassTag[T]): Traversable[T]
- Definition Classes
- MockitoMatchers
-
def
anyVarArg[T]: T
- Definition Classes
- MockitoMatchers
-
implicit
def
argThat[T, U <: T](m: Matcher[U]): T
allows to use a specs matcher to match parameters by encapsulating it as a Hamcrest matcher.
allows to use a specs matcher to match parameters by encapsulating it as a Hamcrest matcher.
- Definition Classes
- ArgThat
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
atLeast[T <: AnyRef](i: Int)(mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at least n calls made to the mock
at least n calls made to the mock
- Definition Classes
- CalledMatchers
-
def
atLeastOne[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at least 1 call made to the mock
at least 1 call made to the mock
- Definition Classes
- CalledMatchers
-
def
atLeastThree[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at least 3 calls made to the mock
at least 3 calls made to the mock
- Definition Classes
- CalledMatchers
-
def
atLeastTwo[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at least 2 calls made to the mock
at least 2 calls made to the mock
- Definition Classes
- CalledMatchers
-
def
atMost[T <: AnyRef](i: Int)(mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at most n calls made to the mock
at most n calls made to the mock
- Definition Classes
- CalledMatchers
-
def
atMostOne[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at most 1 call made to the mock
at most 1 call made to the mock
- Definition Classes
- CalledMatchers
-
def
atMostThree[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at most 3 calls made to the mock
at most 3 calls made to the mock
- Definition Classes
- CalledMatchers
-
def
atMostTwo[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at most 2 calls made to the mock
at most 2 calls made to the mock
- Definition Classes
- CalledMatchers
-
def
callMatching[A, R](a: A, m: Matcher[R]): (A) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching2[T1, T2, R](t1: T1, t2: T2, m: Matcher[R]): (T1, T2) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, t20: T20, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, t20: T20, t21: T21, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, t20: T20, t21: T21, t22: T22, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching3[T1, T2, T3, R](t1: T1, t2: T2, t3: T3, m: Matcher[R]): (T1, T2, T3) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching4[T1, T2, T3, T4, R](t1: T1, t2: T2, t3: T3, t4: T4, m: Matcher[R]): (T1, T2, T3, T4) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching5[T1, T2, T3, T4, T5, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, m: Matcher[R]): (T1, T2, T3, T4, T5) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching6[T1, T2, T3, T4, T5, T6, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, m: Matcher[R]): (T1, T2, T3, T4, T5, T6) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching7[T1, T2, T3, T4, T5, T6, T7, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching8[T1, T2, T3, T4, T5, T6, T7, T8, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ R
- Definition Classes
- FunctionArguments
-
def
capture[T](implicit arg0: ClassTag[T]): ArgumentCapture[T]
capture an argument of type T
capture an argument of type T
- Definition Classes
- CapturedArgument
-
implicit
def
captured[T](c: ArgumentCapture[T]): T
this conversion allows to capture the parameter is a mocked call
this conversion allows to capture the parameter is a mocked call
- Definition Classes
- CapturedArgument
-
def
checkFailure[T](m: MatchResult[T]): MatchResult[T]
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
def
checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
def
checkResultFailure(r: ⇒ Result): Result
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
def
classesOf[T1, T2, T3, T4, T5](implicit arg0: ClassTag[T1], arg1: ClassTag[T2], arg2: ClassTag[T3], arg3: ClassTag[T4], arg4: ClassTag[T5]): Seq[Class[_ >: _$1 with _$1 with _$1 with _$1 with _$1]] forSome {type _$1, type _$1, type _$1, type _$1, type _$1}
- Definition Classes
- ClassesOf
-
def
classesOf[T1, T2, T3, T4](implicit arg0: ClassTag[T1], arg1: ClassTag[T2], arg2: ClassTag[T3], arg3: ClassTag[T4]): Seq[Class[_ >: _$1 with _$1 with _$1 with _$1]] forSome {type _$1, type _$1, type _$1, type _$1}
- Definition Classes
- ClassesOf
-
def
classesOf[T1, T2, T3](implicit arg0: ClassTag[T1], arg1: ClassTag[T2], arg2: ClassTag[T3]): Seq[Class[_ >: _$1 with _$1 with _$1]] forSome {type _$1, type _$1, type _$1}
- Definition Classes
- ClassesOf
-
def
classesOf[T1, T2](implicit arg0: ClassTag[T1], arg1: ClassTag[T2]): Seq[Class[_ >: _$1 with _$1]] forSome {type _$1, type _$1}
- Definition Classes
- ClassesOf
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
createExpectable[T](t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]
- Definition Classes
- ExpectationsCreation
-
def
createExpectable[T](t: ⇒ T, alias: (String) ⇒ String): Expectable[T]
- Definition Classes
- ExpectationsCreation
-
def
createExpectable[T](t: ⇒ T, alias: ⇒ String): Expectable[T]
- Definition Classes
- ExpectationsCreation
-
def
createExpectable[T](t: ⇒ T): Expectable[T]
- Definition Classes
- ExpectationsCreation
-
def
createExpectableWithShowAs[T](t: ⇒ T, showAs: ⇒ String): Expectable[T]
- Definition Classes
- ExpectationsCreation
-
implicit
def
describe[T](t: ⇒ T): Descriptible[T]
- Definition Classes
- ExpectationsDescription
-
implicit
def
describeExpectation(description: String): ExpectationDescription
- Definition Classes
- ExpectationsDescription
-
def
doAnswer[T](a: Answer[T]): Stubber
delegate to MockitoMocker doAnswer.
delegate to MockitoMocker doAnswer.
- Definition Classes
- MockitoFunctions
-
def
doAnswer[T](f: (Any) ⇒ T): Stubber
delegate to MockitoMocker doAnswer with a MockAnswer object using the function f.
delegate to MockitoMocker doAnswer with a MockAnswer object using the function f.
- Definition Classes
- MockitoStubs
-
def
doNothing: Stubber
delegate to MockitoMocker doNothing.
delegate to MockitoMocker doNothing.
- Definition Classes
- MockitoFunctions
-
def
doReturn[T](t: T): Stubber
delegate to MockitoMocker doReturn.
delegate to MockitoMocker doReturn.
- Definition Classes
- MockitoFunctions
-
def
doThrow[E <: Throwable](e: E): Stubber
delegate to MockitoMocker doThrow.
delegate to MockitoMocker doThrow.
- Definition Classes
- MockitoFunctions
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exactly[T <: AnyRef](n: Int)(mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
exactly n calls only made to the mock
exactly n calls only made to the mock
- Definition Classes
- CalledMatchers
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
functionCall[A, R](a: A, r: R): (A) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall2[T1, T2, R](t1: T1, t2: T2, r: R): (T1, T2) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, t20: T20, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, t20: T20, t21: T21, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, t20: T20, t21: T21, t22: T22, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall3[T1, T2, T3, R](t1: T1, t2: T2, t3: T3, r: R): (T1, T2, T3) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall4[T1, T2, T3, T4, R](t1: T1, t2: T2, t3: T3, t4: T4, r: R): (T1, T2, T3, T4) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall5[T1, T2, T3, T4, T5, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, r: R): (T1, T2, T3, T4, T5) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall6[T1, T2, T3, T4, T5, T6, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, r: R): (T1, T2, T3, T4, T5, T6) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall7[T1, T2, T3, T4, T5, T6, T7, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, r: R): (T1, T2, T3, T4, T5, T6, T7) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall8[T1, T2, T3, T4, T5, T6, T7, T8, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, r: R): (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ R
- Definition Classes
- FunctionArguments
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
got[T](t: ⇒ T): MatchResult[T]
alias for 'there was'
alias for 'there was'
- Definition Classes
- CalledMatchers
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
ignoreStubs(mocks: AnyRef*): IgnoreStubs
ignore stubbed methods when verifying that a mock has no more interactions
ignore stubbed methods when verifying that a mock has no more interactions
- Definition Classes
- MocksCreation
-
def
inOrder(stubbed: IgnoreStubs): Option[InOrder]
- Definition Classes
- CalledMatchers
-
def
inOrder(mocks: AnyRef*): Option[InOrder]
- Definition Classes
- CalledMatchers
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mapMatchResult[T](m: MatchResult[T]): MatchResult[T]
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
implicit
def
matcherToFunctionCall[A, R](values: (A, Matcher[R])): (A) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall2[T1, T2, R](values: ((T1, T2), Matcher[R])): (T1, T2) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall3[T1, T2, T3, R](values: ((T1, T2, T3), Matcher[R])): (T1, T2, T3) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall4[T1, T2, T3, T4, R](values: ((T1, T2, T3, T4), Matcher[R])): (T1, T2, T3, T4) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall5[T1, T2, T3, T4, T5, R](values: ((T1, T2, T3, T4, T5), Matcher[R])): (T1, T2, T3, T4, T5) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall6[T1, T2, T3, T4, T5, T6, R](values: ((T1, T2, T3, T4, T5, T6), Matcher[R])): (T1, T2, T3, T4, T5, T6) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall7[T1, T2, T3, T4, T5, T6, T7, R](values: ((T1, T2, T3, T4, T5, T6, T7), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall8[T1, T2, T3, T4, T5, T6, T7, T8, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToPartialFunctionCall[A, R](values: (A, Matcher[R])): PartialFunction[A, R]
- Definition Classes
- FunctionArgumentsLowImplicits
-
def
mock[T](settings: MockSettings)(implicit arg0: ClassTag[T]): T
create a mock object with some specific settings: val m = mock[java.util.List[String]](settings)
create a mock object with some specific settings: val m = mock[java.util.List[String]](settings)
- Definition Classes
- MocksCreation
-
def
mock[T](implicit arg0: ClassTag[T]): T
create a mock object: val m = mock[java.util.List[String]]
create a mock object: val m = mock[java.util.List[String]]
- Definition Classes
- MocksCreation
-
def
mockAs[T](name: String)(implicit arg0: ClassTag[T]): T
create a mock object with a name: val m = mockAs[java.util.List[String]]("name")
create a mock object with a name: val m = mockAs[java.util.List[String]]("name")
- Definition Classes
- MocksCreation
-
implicit
def
mocked[T](t: ⇒ T)(implicit arg0: ClassTag[T]): Mocked[T]
implicit allowing to define the mock settings with a nice syntax:
implicit allowing to define the mock settings with a nice syntax:
- named mock: val m = mock[java.util.List[String]].as("name")
- smart mock: val m = mock[java.util.List[String]].smart
- other settings: val m = mock[java.util.List[String]]. settings(name = "list", defaultReturn = 10, extraInterfaces = classesOf[Cloneable, Serializable])
- Definition Classes
- MocksCreation
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
no[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
no call made to the mock
no call made to the mock
- Definition Classes
- CalledMatchers
-
def
noCallsTo[T <: AnyRef](mocks: T*): Unit
no calls made to the mock
no calls made to the mock
- Definition Classes
- CalledMatchers
-
def
noMoreCallsTo[T <: AnyRef](stubbed: IgnoreStubs): Unit
no more calls made to the mock
no more calls made to the mock
- Definition Classes
- CalledMatchers
-
def
noMoreCallsTo[T <: AnyRef](mocks: T*): Unit
no more calls made to the mock
no more calls made to the mock
- Definition Classes
- CalledMatchers
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
one[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
one call only made to the mock
one call only made to the mock
- Definition Classes
- CalledMatchers
-
implicit
def
ongoingStubbing[M](stubbing: ⇒ OngoingStubbing[_]): M
- Definition Classes
- MockitoStubsLowerImplicits
-
def
partialCallMatching[A, R](a: A, m: Matcher[R]): PartialFunction[A, R]
- Definition Classes
- FunctionArgumentsLowImplicits
-
def
partialFunctionCall[A, R](a: A, r: R): PartialFunction[A, R]
- Definition Classes
- FunctionArgumentsLowImplicits
-
def
sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
def
setStacktrace[T](m: MatchResult[T]): MatchResult[T]
- Attributes
- protected
- Definition Classes
- MatchResultStackTrace
-
def
smartMock[T](implicit arg0: ClassTag[T]): T
create a mock object with smart return values: val m = smartMock[java.util.List[String]]
create a mock object with smart return values: val m = smartMock[java.util.List[String]]
This is the equivalent of Mockito.mock(List.class, SMART_NULLVALUES) but testing shows that it is not working well with Scala.
- Definition Classes
- MocksCreation
-
def
spy[T](m: T): T
create a spy on an object.
create a spy on an object.
A spy is a real object but can still have some of its methods stubbed. However the syntax for stubbing a spy is a bit different than with a mock:
val s = spy(new LinkedList[String]) doReturn("one").when(s).get(0) // instead of s.get(0) returns "one" which would throw an exception
- Definition Classes
- MocksCreation
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
implicit
def
theStubbed[T](c: T): Stubbed[T]
- returns
an object supporting the stub methods.
- Definition Classes
- MockitoStubs
-
def
there: Calls
create an object supporting 'was' and 'were' methods
create an object supporting 'was' and 'were' methods
- Definition Classes
- CalledMatchers
-
def
three[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
three calls only made to the mock
three calls only made to the mock
- Definition Classes
- CalledMatchers
-
implicit
def
timesFor(n: Int): Times
- Definition Classes
- NumberOfTimes
-
implicit
def
toFunctionCall[A, R](values: (A, R)): (A) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall2[T1, T2, R](values: ((T1, T2), R)): (T1, T2) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall3[T1, T2, T3, R](values: ((T1, T2, T3), R)): (T1, T2, T3) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall4[T1, T2, T3, T4, R](values: ((T1, T2, T3, T4), R)): (T1, T2, T3, T4) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall5[T1, T2, T3, T4, T5, R](values: ((T1, T2, T3, T4, T5), R)): (T1, T2, T3, T4, T5) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall6[T1, T2, T3, T4, T5, T6, R](values: ((T1, T2, T3, T4, T5, T6), R)): (T1, T2, T3, T4, T5, T6) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall7[T1, T2, T3, T4, T5, T6, T7, R](values: ((T1, T2, T3, T4, T5, T6, T7), R)): (T1, T2, T3, T4, T5, T6, T7) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall8[T1, T2, T3, T4, T5, T6, T7, T8, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8), R)): (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toInOrderMode[T](calls: ⇒ T)(implicit arg0: AsResult[T]): ToInOrderMode[T]
implicit def supporting calls in order
implicit def supporting calls in order
- Definition Classes
- CalledMatchers
-
implicit
def
toPartialFunctionCall[A, R](values: (A, R)): PartialFunction[A, R]
- Definition Classes
- FunctionArgumentsLowImplicits
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
two[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
two calls only made to the mock
two calls only made to the mock
- Definition Classes
- CalledMatchers
-
implicit
def
typedEqualExpectation[T](t: ⇒ T): TypedEqualExpectation[T]
- Definition Classes
- TypedEqual
-
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
- @throws( ... )