Trait

org.specs2.mock

Mockito

Related Doc: package mock

Permalink

trait Mockito extends MocksCreation with CalledMatchers with MockitoStubs with CapturedArgument with MockitoMatchers with ArgThat with Expectations with MockitoFunctions

This trait can be used to access Mockito functionalities.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Mockito
  2. MockitoFunctions
  3. MockitoMatchers
  4. CapturedArgument
  5. MockitoStubs
  6. MockitoStubsLowerImplicits
  7. CalledMatchers
  8. FunctionArguments
  9. FunctionArgumentsLowImplicits
  10. Expectations
  11. ExpectationsDescription
  12. TypedEqual
  13. ExpectationsCreation
  14. MatchResultStackTrace
  15. ArgThat
  16. NumberOfTimes
  17. MocksCreation
  18. ClassesOf
  19. TheMockitoMocker
  20. AnyRef
  21. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. class AStubber[T] extends AnyRef

    Permalink

    provide stub chain methods.

    provide stub chain methods.

    Definition Classes
    MockitoStubs
  2. class AnOngoingStubbing[T] extends AnyRef

    Permalink

    provide stub chain methods.

    provide stub chain methods.

    Definition Classes
    MockitoStubs
  3. class Calls extends AnyRef

    Permalink

    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
  4. class Descriptible[T] extends AnyRef

    Permalink
    Definition Classes
    ExpectationsDescription
  5. class ExpectationDescription extends AnyRef

    Permalink
    Definition Classes
    ExpectationsDescription
  6. class MockAnswer[T] extends Answer[T]

    Permalink

    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
  7. class MockAnswer2[T] extends Answer[T]

    Permalink

    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
  8. case class MockProperty[T](p: Property[T] = Property[T]()) extends Product with Serializable

    Permalink
    Definition Classes
    MocksCreation
  9. case class MockitoVerificationWithTimeout(duration: Duration) extends Product with Serializable

    Permalink
    Definition Classes
    CalledMatchers
  10. class Stubbed[T] extends AnyRef

    Permalink

    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
  11. implicit class TimesCall extends AnyRef

    Permalink

    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
  12. class ToInOrderMode[T] extends AnyRef

    Permalink

    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
  13. class TypedEqualExpectation[T] extends AnyRef

    Permalink
    Definition Classes
    TypedEqual

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. implicit def aStubber(stub: ⇒ Stubber): AStubber[Nothing]

    Permalink

    returns

    an object allowing the chaining of returned values on doNothing calls.

    Definition Classes
    MockitoStubs
  5. def after(duration: Duration): MockitoVerificationWithTimeout

    Permalink

    add a timeout constraint to the verification

    add a timeout constraint to the verification

    Definition Classes
    CalledMatchers
  6. def anArgThat[T, U <: T](m: Matcher[U]): T

    Permalink

    allows to use a hamcrest matchers to match parameters.

    allows to use a hamcrest matchers to match parameters.

    Definition Classes
    ArgThat
  7. implicit def anOngoingStubbing[T](stub: ⇒ OngoingStubbing[T]): AnOngoingStubbing[T]

    Permalink

    returns

    an object allowing the chaining of stub values.

    Definition Classes
    MockitoStubs
  8. def any[T](implicit arg0: ClassTag[T]): T

    Permalink
    Definition Classes
    MockitoMatchers
  9. def anyBoolean: Boolean

    Permalink
    Definition Classes
    MockitoMatchers
  10. def anyByte: Byte

    Permalink
    Definition Classes
    MockitoMatchers
  11. def anyChar: Char

    Permalink
    Definition Classes
    MockitoMatchers
  12. def anyDouble: Double

    Permalink
    Definition Classes
    MockitoMatchers
  13. def anyFloat: Float

    Permalink
    Definition Classes
    MockitoMatchers
  14. def anyFunction1[T1, R]: (T1) ⇒ R

    Permalink
    Definition Classes
    MockitoMatchers
  15. def anyFunction10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) ⇒ R

    Permalink
    Definition Classes
    MockitoMatchers
  16. 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

    Permalink
    Definition Classes
    MockitoMatchers
  17. 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

    Permalink
    Definition Classes
    MockitoMatchers
  18. 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

    Permalink
    Definition Classes
    MockitoMatchers
  19. 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

    Permalink
    Definition Classes
    MockitoMatchers
  20. 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

    Permalink
    Definition Classes
    MockitoMatchers
  21. 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

    Permalink
    Definition Classes
    MockitoMatchers
  22. 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

    Permalink
    Definition Classes
    MockitoMatchers
  23. 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

    Permalink
    Definition Classes
    MockitoMatchers
  24. 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

    Permalink
    Definition Classes
    MockitoMatchers
  25. def anyFunction2[T1, T2, R]: (T1, T2) ⇒ R

    Permalink
    Definition Classes
    MockitoMatchers
  26. 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

    Permalink
    Definition Classes
    MockitoMatchers
  27. 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

    Permalink
    Definition Classes
    MockitoMatchers
  28. 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

    Permalink
    Definition Classes
    MockitoMatchers
  29. def anyFunction3[T1, T2, T3, R]: (T1, T2, T3) ⇒ R

    Permalink
    Definition Classes
    MockitoMatchers
  30. def anyFunction4[T1, T2, T3, T4, R]: (T1, T2, T3, T4) ⇒ R

    Permalink
    Definition Classes
    MockitoMatchers
  31. def anyFunction5[T1, T2, T3, T4, T5, R]: (T1, T2, T3, T4, T5) ⇒ R

    Permalink
    Definition Classes
    MockitoMatchers
  32. def anyFunction6[T1, T2, T3, T4, T5, T6, R]: (T1, T2, T3, T4, T5, T6) ⇒ R

    Permalink
    Definition Classes
    MockitoMatchers
  33. def anyFunction7[T1, T2, T3, T4, T5, T6, T7, R]: (T1, T2, T3, T4, T5, T6, T7) ⇒ R

    Permalink
    Definition Classes
    MockitoMatchers
  34. def anyFunction8[T1, T2, T3, T4, T5, T6, T7, T8, R]: (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ R

    Permalink
    Definition Classes
    MockitoMatchers
  35. def anyFunction9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R]: (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ R

    Permalink
    Definition Classes
    MockitoMatchers
  36. def anyInt: Int

    Permalink
    Definition Classes
    MockitoMatchers
  37. def anyJavaCollection: Collection[_]

    Permalink
    Definition Classes
    MockitoMatchers
  38. def anyJavaCollectionOf[T](implicit arg0: ClassTag[T]): Collection[_]

    Permalink
    Definition Classes
    MockitoMatchers
  39. def anyJavaList: List[_]

    Permalink
    Definition Classes
    MockitoMatchers
  40. def anyJavaListOf[T](implicit arg0: ClassTag[T]): List[_]

    Permalink
    Definition Classes
    MockitoMatchers
  41. def anyJavaMap: Map[_, _]

    Permalink
    Definition Classes
    MockitoMatchers
  42. def anyJavaMapOf[K, V](implicit arg0: ClassTag[K], arg1: ClassTag[V]): Map[_, _]

    Permalink
    Definition Classes
    MockitoMatchers
  43. def anyJavaSet: Set[_]

    Permalink
    Definition Classes
    MockitoMatchers
  44. def anyJavaSetOf[T](implicit arg0: ClassTag[T]): Set[_]

    Permalink
    Definition Classes
    MockitoMatchers
  45. def anyList: List[Any]

    Permalink
    Definition Classes
    MockitoMatchers
  46. def anyListOf[T](implicit arg0: ClassTag[T]): List[T]

    Permalink
    Definition Classes
    MockitoMatchers
  47. def anyLong: Long

    Permalink
    Definition Classes
    MockitoMatchers
  48. def anyMap: Map[_, Any]

    Permalink
    Definition Classes
    MockitoMatchers
  49. def anyMapOf[K, V](implicit arg0: ClassTag[K], arg1: ClassTag[V]): Map[K, V]

    Permalink
    Definition Classes
    MockitoMatchers
  50. def anyPartialFunction[T, R]: PartialFunction[T, R]

    Permalink
    Definition Classes
    MockitoMatchers
  51. def anySet: Set[_]

    Permalink
    Definition Classes
    MockitoMatchers
  52. def anySetOf[T](implicit arg0: ClassTag[T]): Set[T]

    Permalink
    Definition Classes
    MockitoMatchers
  53. def anyShort: Short

    Permalink
    Definition Classes
    MockitoMatchers
  54. def anyString: String

    Permalink
    Definition Classes
    MockitoMatchers
  55. implicit def anyToMockProperty[T](t: ⇒ T): MockProperty[T]

    Permalink

    this implicit helps with defining optional values for mockito settings

    this implicit helps with defining optional values for mockito settings

    Definition Classes
    MocksCreation
  56. def anyTraversable: Traversable[Any]

    Permalink
    Definition Classes
    MockitoMatchers
  57. def anyTraversableOf[T](implicit arg0: ClassTag[T]): Traversable[T]

    Permalink
    Definition Classes
    MockitoMatchers
  58. def anyVarArg[T]: T

    Permalink
    Definition Classes
    MockitoMatchers
  59. implicit def argThat[T, U <: T](m: Matcher[U]): T

    Permalink

    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
  60. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  61. def atLeast[T <: AnyRef](i: Int)(mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T

    Permalink

    at least n calls made to the mock

    at least n calls made to the mock

    Definition Classes
    CalledMatchers
  62. def atLeastOne[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T

    Permalink

    at least 1 call made to the mock

    at least 1 call made to the mock

    Definition Classes
    CalledMatchers
  63. def atLeastThree[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T

    Permalink

    at least 3 calls made to the mock

    at least 3 calls made to the mock

    Definition Classes
    CalledMatchers
  64. def atLeastTwo[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T

    Permalink

    at least 2 calls made to the mock

    at least 2 calls made to the mock

    Definition Classes
    CalledMatchers
  65. def atMost[T <: AnyRef](i: Int)(mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T

    Permalink

    at most n calls made to the mock

    at most n calls made to the mock

    Definition Classes
    CalledMatchers
  66. def atMostOne[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T

    Permalink

    at most 1 call made to the mock

    at most 1 call made to the mock

    Definition Classes
    CalledMatchers
  67. def atMostThree[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T

    Permalink

    at most 3 calls made to the mock

    at most 3 calls made to the mock

    Definition Classes
    CalledMatchers
  68. def atMostTwo[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T

    Permalink

    at most 2 calls made to the mock

    at most 2 calls made to the mock

    Definition Classes
    CalledMatchers
  69. def callMatching[A, R](a: A, m: Matcher[R]): (A) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  70. 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

    Permalink
    Definition Classes
    FunctionArguments
  71. 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

    Permalink
    Definition Classes
    FunctionArguments
  72. 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

    Permalink
    Definition Classes
    FunctionArguments
  73. 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

    Permalink
    Definition Classes
    FunctionArguments
  74. 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

    Permalink
    Definition Classes
    FunctionArguments
  75. 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

    Permalink
    Definition Classes
    FunctionArguments
  76. 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

    Permalink
    Definition Classes
    FunctionArguments
  77. 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

    Permalink
    Definition Classes
    FunctionArguments
  78. 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

    Permalink
    Definition Classes
    FunctionArguments
  79. 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

    Permalink
    Definition Classes
    FunctionArguments
  80. def callMatching2[T1, T2, R](t1: T1, t2: T2, m: Matcher[R]): (T1, T2) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  81. 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

    Permalink
    Definition Classes
    FunctionArguments
  82. 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

    Permalink
    Definition Classes
    FunctionArguments
  83. 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

    Permalink
    Definition Classes
    FunctionArguments
  84. def callMatching3[T1, T2, T3, R](t1: T1, t2: T2, t3: T3, m: Matcher[R]): (T1, T2, T3) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  85. def callMatching4[T1, T2, T3, T4, R](t1: T1, t2: T2, t3: T3, t4: T4, m: Matcher[R]): (T1, T2, T3, T4) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  86. 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

    Permalink
    Definition Classes
    FunctionArguments
  87. 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

    Permalink
    Definition Classes
    FunctionArguments
  88. 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

    Permalink
    Definition Classes
    FunctionArguments
  89. 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

    Permalink
    Definition Classes
    FunctionArguments
  90. 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

    Permalink
    Definition Classes
    FunctionArguments
  91. def capture[T](implicit arg0: ClassTag[T]): ArgumentCapture[T]

    Permalink

    capture an argument of type T

    capture an argument of type T

    Definition Classes
    CapturedArgument
  92. implicit def captured[T](c: ArgumentCapture[T]): T

    Permalink

    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
  93. def checkFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    this method can be overridden to throw exceptions when checking the match result

    this method can be overridden to throw exceptions when checking the match result

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  94. def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    this method can be overridden to throw exceptions when checking the match result

    this method can be overridden to throw exceptions when checking the match result

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  95. def checkResultFailure(r: ⇒ Result): Result

    Permalink

    this method can be overridden to throw exceptions when checking the result

    this method can be overridden to throw exceptions when checking the result

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  96. 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}

    Permalink
    Definition Classes
    ClassesOf
  97. 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}

    Permalink
    Definition Classes
    ClassesOf
  98. 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}

    Permalink
    Definition Classes
    ClassesOf
  99. def classesOf[T1, T2](implicit arg0: ClassTag[T1], arg1: ClassTag[T2]): Seq[Class[_ >: _$1 with _$1]] forSome {type _$1, type _$1}

    Permalink
    Definition Classes
    ClassesOf
  100. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  101. def createExpectable[T](t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]

    Permalink

    returns

    an Expectable with a description function

    Definition Classes
    ExpectationsCreation
  102. def createExpectable[T](t: ⇒ T, alias: (String) ⇒ String): Expectable[T]

    Permalink

    returns

    an Expectable with a description function

    Definition Classes
    ExpectationsCreation
  103. def createExpectable[T](t: ⇒ T, alias: ⇒ String): Expectable[T]

    Permalink

    returns

    an Expectable with a description

    Definition Classes
    ExpectationsCreation
  104. def createExpectable[T](t: ⇒ T): Expectable[T]

    Permalink

    returns

    an Expectable

    Definition Classes
    ExpectationsCreation
  105. def createExpectableWithShowAs[T](t: ⇒ T, showAs: ⇒ String): Expectable[T]

    Permalink

    returns

    an Expectable with a function to show the element T

    Definition Classes
    ExpectationsCreation
  106. implicit def describe[T](t: ⇒ T): Descriptible[T]

    Permalink

    describe a value with the aka method

    describe a value with the aka method

    Definition Classes
    ExpectationsDescription
  107. implicit def describeExpectation(description: String): ExpectationDescription

    Permalink
    Definition Classes
    ExpectationsDescription
  108. def doAnswer[T](a: Answer[T]): Stubber

    Permalink

    delegate to MockitoMocker doAnswer.

    delegate to MockitoMocker doAnswer.

    Definition Classes
    MockitoFunctions
  109. def doAnswer[T](f: (Any) ⇒ T): Stubber

    Permalink

    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
  110. def doNothing: Stubber

    Permalink

    delegate to MockitoMocker doNothing.

    delegate to MockitoMocker doNothing.

    Definition Classes
    MockitoFunctions
  111. def doReturn[T](t: T): Stubber

    Permalink

    delegate to MockitoMocker doReturn.

    delegate to MockitoMocker doReturn.

    Definition Classes
    MockitoFunctions
  112. def doThrow[E <: Throwable](e: E): Stubber

    Permalink

    delegate to MockitoMocker doThrow.

    delegate to MockitoMocker doThrow.

    Definition Classes
    MockitoFunctions
  113. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  114. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  115. def exactly[T <: AnyRef](n: Int)(mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T

    Permalink

    exactly n calls only made to the mock

    exactly n calls only made to the mock

    Definition Classes
    CalledMatchers
  116. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  117. def functionCall[A, R](a: A, r: R): (A) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  118. 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

    Permalink
    Definition Classes
    FunctionArguments
  119. 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

    Permalink
    Definition Classes
    FunctionArguments
  120. 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

    Permalink
    Definition Classes
    FunctionArguments
  121. 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

    Permalink
    Definition Classes
    FunctionArguments
  122. 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

    Permalink
    Definition Classes
    FunctionArguments
  123. 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

    Permalink
    Definition Classes
    FunctionArguments
  124. 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

    Permalink
    Definition Classes
    FunctionArguments
  125. 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

    Permalink
    Definition Classes
    FunctionArguments
  126. 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

    Permalink
    Definition Classes
    FunctionArguments
  127. 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

    Permalink
    Definition Classes
    FunctionArguments
  128. def functionCall2[T1, T2, R](t1: T1, t2: T2, r: R): (T1, T2) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  129. 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

    Permalink
    Definition Classes
    FunctionArguments
  130. 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

    Permalink
    Definition Classes
    FunctionArguments
  131. 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

    Permalink
    Definition Classes
    FunctionArguments
  132. def functionCall3[T1, T2, T3, R](t1: T1, t2: T2, t3: T3, r: R): (T1, T2, T3) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  133. def functionCall4[T1, T2, T3, T4, R](t1: T1, t2: T2, t3: T3, t4: T4, r: R): (T1, T2, T3, T4) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  134. 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

    Permalink
    Definition Classes
    FunctionArguments
  135. 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

    Permalink
    Definition Classes
    FunctionArguments
  136. 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

    Permalink
    Definition Classes
    FunctionArguments
  137. 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

    Permalink
    Definition Classes
    FunctionArguments
  138. 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

    Permalink
    Definition Classes
    FunctionArguments
  139. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  140. def got[T](t: ⇒ T): MatchResult[T]

    Permalink

    alias for 'there was'

    alias for 'there was'

    Definition Classes
    CalledMatchers
  141. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  142. def ignoreStubs(mocks: AnyRef*): IgnoreStubs

    Permalink

    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
  143. def inOrder(stubbed: IgnoreStubs): Option[InOrder]

    Permalink
    Definition Classes
    CalledMatchers
  144. def inOrder(mocks: AnyRef*): Option[InOrder]

    Permalink
    Definition Classes
    CalledMatchers
  145. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  146. def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    this method can be overridden to intercept a MatchResult and change its message before it is thrown

    this method can be overridden to intercept a MatchResult and change its message before it is thrown

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  147. implicit def matcherToFunctionCall[A, R](values: (A, Matcher[R])): (A) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  148. 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

    Permalink
    Definition Classes
    FunctionArguments
  149. 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

    Permalink
    Definition Classes
    FunctionArguments
  150. 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

    Permalink
    Definition Classes
    FunctionArguments
  151. 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

    Permalink
    Definition Classes
    FunctionArguments
  152. 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

    Permalink
    Definition Classes
    FunctionArguments
  153. 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

    Permalink
    Definition Classes
    FunctionArguments
  154. 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

    Permalink
    Definition Classes
    FunctionArguments
  155. 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

    Permalink
    Definition Classes
    FunctionArguments
  156. 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

    Permalink
    Definition Classes
    FunctionArguments
  157. 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

    Permalink
    Definition Classes
    FunctionArguments
  158. implicit def matcherToFunctionCall2[T1, T2, R](values: ((T1, T2), Matcher[R])): (T1, T2) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  159. 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

    Permalink
    Definition Classes
    FunctionArguments
  160. 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

    Permalink
    Definition Classes
    FunctionArguments
  161. 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

    Permalink
    Definition Classes
    FunctionArguments
  162. implicit def matcherToFunctionCall3[T1, T2, T3, R](values: ((T1, T2, T3), Matcher[R])): (T1, T2, T3) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  163. implicit def matcherToFunctionCall4[T1, T2, T3, T4, R](values: ((T1, T2, T3, T4), Matcher[R])): (T1, T2, T3, T4) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  164. implicit def matcherToFunctionCall5[T1, T2, T3, T4, T5, R](values: ((T1, T2, T3, T4, T5), Matcher[R])): (T1, T2, T3, T4, T5) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  165. 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

    Permalink
    Definition Classes
    FunctionArguments
  166. 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

    Permalink
    Definition Classes
    FunctionArguments
  167. 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

    Permalink
    Definition Classes
    FunctionArguments
  168. 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

    Permalink
    Definition Classes
    FunctionArguments
  169. implicit def matcherToPartialFunctionCall[A, R](values: (A, Matcher[R])): PartialFunction[A, R]

    Permalink
  170. def mock[T](settings: MockSettings)(implicit arg0: ClassTag[T]): T

    Permalink

    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
  171. def mock[T](implicit arg0: ClassTag[T]): T

    Permalink

    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
  172. def mockAs[T](name: String)(implicit arg0: ClassTag[T]): T

    Permalink

    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
  173. implicit def mocked[T](t: ⇒ T)(implicit arg0: ClassTag[T]): Mocked[T]

    Permalink

    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
  174. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  175. def no[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T

    Permalink

    no call made to the mock

    no call made to the mock

    Definition Classes
    CalledMatchers
  176. def noCallsTo[T <: AnyRef](mocks: T*): Unit

    Permalink

    no calls made to the mock

    no calls made to the mock

    Definition Classes
    CalledMatchers
  177. def noMoreCallsTo[T <: AnyRef](stubbed: IgnoreStubs): Unit

    Permalink

    no more calls made to the mock

    no more calls made to the mock

    Definition Classes
    CalledMatchers
  178. def noMoreCallsTo[T <: AnyRef](mocks: T*): Unit

    Permalink

    no more calls made to the mock

    no more calls made to the mock

    Definition Classes
    CalledMatchers
  179. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  181. def one[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T

    Permalink

    one call only made to the mock

    one call only made to the mock

    Definition Classes
    CalledMatchers
  182. implicit def ongoingStubbing[M](stubbing: ⇒ OngoingStubbing[_]): M

    Permalink
    Definition Classes
    MockitoStubsLowerImplicits
  183. def partialCallMatching[A, R](a: A, m: Matcher[R]): PartialFunction[A, R]

    Permalink
  184. def partialFunctionCall[A, R](a: A, r: R): PartialFunction[A, R]

    Permalink
  185. def sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]

    Permalink

    returns

    the match result without any side-effects

    Attributes
    protected
    Definition Classes
    ExpectationsCreation
  186. def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

    Permalink

    this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

    this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

    Attributes
    protected
    Definition Classes
    MatchResultStackTrace
  187. def smartMock[T](implicit arg0: ClassTag[T]): T

    Permalink

    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
  188. def spy[T](m: T): T

    Permalink

    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
  189. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  190. implicit def theStubbed[T](c: ⇒ T): Stubbed[T]

    Permalink

    returns

    an object supporting the stub methods.

    Definition Classes
    MockitoStubs
  191. def there: Calls

    Permalink

    create an object supporting 'was' and 'were' methods

    create an object supporting 'was' and 'were' methods

    Definition Classes
    CalledMatchers
  192. def three[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T

    Permalink

    three calls only made to the mock

    three calls only made to the mock

    Definition Classes
    CalledMatchers
  193. implicit def timesFor(n: Int): Times

    Permalink

    This implicit definition allows to declare a number of times 3.times

    This implicit definition allows to declare a number of times 3.times

    Definition Classes
    NumberOfTimes
  194. implicit def toFunctionCall[A, R](values: (A, R)): (A) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  195. 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

    Permalink
    Definition Classes
    FunctionArguments
  196. 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

    Permalink
    Definition Classes
    FunctionArguments
  197. 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

    Permalink
    Definition Classes
    FunctionArguments
  198. 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

    Permalink
    Definition Classes
    FunctionArguments
  199. 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

    Permalink
    Definition Classes
    FunctionArguments
  200. 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

    Permalink
    Definition Classes
    FunctionArguments
  201. 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

    Permalink
    Definition Classes
    FunctionArguments
  202. 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

    Permalink
    Definition Classes
    FunctionArguments
  203. 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

    Permalink
    Definition Classes
    FunctionArguments
  204. 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

    Permalink
    Definition Classes
    FunctionArguments
  205. implicit def toFunctionCall2[T1, T2, R](values: ((T1, T2), R)): (T1, T2) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  206. 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

    Permalink
    Definition Classes
    FunctionArguments
  207. 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

    Permalink
    Definition Classes
    FunctionArguments
  208. 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

    Permalink
    Definition Classes
    FunctionArguments
  209. implicit def toFunctionCall3[T1, T2, T3, R](values: ((T1, T2, T3), R)): (T1, T2, T3) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  210. implicit def toFunctionCall4[T1, T2, T3, T4, R](values: ((T1, T2, T3, T4), R)): (T1, T2, T3, T4) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  211. implicit def toFunctionCall5[T1, T2, T3, T4, T5, R](values: ((T1, T2, T3, T4, T5), R)): (T1, T2, T3, T4, T5) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  212. 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

    Permalink
    Definition Classes
    FunctionArguments
  213. 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

    Permalink
    Definition Classes
    FunctionArguments
  214. 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

    Permalink
    Definition Classes
    FunctionArguments
  215. 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

    Permalink
    Definition Classes
    FunctionArguments
  216. implicit def toInOrderMode[T](calls: ⇒ T)(implicit arg0: AsResult[T]): ToInOrderMode[T]

    Permalink

    implicit def supporting calls in order

    implicit def supporting calls in order

    Definition Classes
    CalledMatchers
  217. implicit def toPartialFunctionCall[A, R](values: (A, R)): PartialFunction[A, R]

    Permalink
  218. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  219. def two[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T

    Permalink

    two calls only made to the mock

    two calls only made to the mock

    Definition Classes
    CalledMatchers
  220. implicit def typedEqualExpectation[T](t: ⇒ T): TypedEqualExpectation[T]

    Permalink

    A value can be tested against another with the === operator.

    A value can be tested against another with the === operator. It is equivalent to writing a must_== b

    Definition Classes
    TypedEqual
  221. final def wait(): Unit

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

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

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

Inherited from MockitoFunctions

Inherited from MockitoMatchers

Inherited from CapturedArgument

Inherited from MockitoStubs

Inherited from CalledMatchers

Inherited from FunctionArguments

Inherited from Expectations

Inherited from ExpectationsDescription

Inherited from TypedEqual

Inherited from ExpectationsCreation

Inherited from MatchResultStackTrace

Inherited from ArgThat

Inherited from NumberOfTimes

Inherited from MocksCreation

Inherited from ClassesOf

Inherited from TheMockitoMocker

Inherited from AnyRef

Inherited from Any

Ungrouped