org.specs2.mock

Mockito

Related Doc: package mock

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
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class AStubber[T] extends AnyRef

    provide stub chain methods.

    provide stub chain methods.

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

    provide stub chain methods.

    provide stub chain methods.

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

    Definition Classes
    ExpectationsDescription
  5. class ExpectationDescription extends AnyRef

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

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

    Definition Classes
    CalledMatchers
  10. 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
  11. 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
  12. 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
  13. class TypedEqualExpectation[T] extends AnyRef

    Definition Classes
    TypedEqual
  14. type ¬[A] = (A) ⇒ Nothing

    Definition Classes
    ArgThat

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. implicit def aStubber(stub: ⇒ Stubber): AStubber[Nothing]

    returns

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

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

    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

    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]

    returns

    an object allowing the chaining of stub values.

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

    Definition Classes
    MockitoMatchers
  9. def anyBoolean: Boolean

    Definition Classes
    MockitoMatchers
  10. def anyByte: Byte

    Definition Classes
    MockitoMatchers
  11. def anyChar: Char

    Definition Classes
    MockitoMatchers
  12. def anyDouble: Double

    Definition Classes
    MockitoMatchers
  13. def anyFloat: Float

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

    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

    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

    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

    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

    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

    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

    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

    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

    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

    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

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

    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

    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

    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

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

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

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

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

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

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

    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

    Definition Classes
    MockitoMatchers
  36. def anyInt: Int

    Definition Classes
    MockitoMatchers
  37. def anyLong: Long

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

    Definition Classes
    MockitoMatchers
  39. def anyShort: Short

    Definition Classes
    MockitoMatchers
  40. def anyString: String

    Definition Classes
    MockitoMatchers
  41. 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
  42. implicit def argThat[T, U <: T, ¬[N] <: U](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
  43. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. def callMatching[A, R](a: A, m: Matcher[R]): (A) ⇒ R

    Definition Classes
    FunctionArguments
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. def callMatching2[T1, T2, R](t1: T1, t2: T2, m: Matcher[R]): (T1, T2) ⇒ R

    Definition Classes
    FunctionArguments
  64. 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
  65. 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
  66. 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
  67. def callMatching3[T1, T2, T3, R](t1: T1, t2: T2, t3: T3, m: Matcher[R]): (T1, T2, T3) ⇒ R

    Definition Classes
    FunctionArguments
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. def capture[T](implicit arg0: ClassTag[T]): ArgumentCapture[T]

    capture an argument of type T

    capture an argument of type T

    Definition Classes
    CapturedArgument
  75. 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
  76. def checkFailure[T](m: MatchResult[T]): MatchResult[T]

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

    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
  78. def checkResultFailure(r: ⇒ Result): Result

    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
  79. 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
  80. 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
  81. 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
  82. def classesOf[T1, T2](implicit arg0: ClassTag[T1], arg1: ClassTag[T2]): Seq[Class[_ >: _$1 with _$1]] forSome {type _$1, type _$1}

    Definition Classes
    ClassesOf
  83. def clone(): AnyRef

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

    returns

    an Expectable with a description function

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

    returns

    an Expectable with a description function

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

    returns

    an Expectable with a description

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

    returns

    an Expectable

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

    returns

    an Expectable with a function to show the element T

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

    describe a value with the aka method

    describe a value with the aka method

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

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

    delegate to MockitoMocker doAnswer.

    delegate to MockitoMocker doAnswer.

    Definition Classes
    MockitoFunctions
  92. 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
  93. def doNothing: Stubber

    delegate to MockitoMocker doNothing.

    delegate to MockitoMocker doNothing.

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

    delegate to MockitoMocker doReturn.

    delegate to MockitoMocker doReturn.

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

    delegate to MockitoMocker doThrow.

    delegate to MockitoMocker doThrow.

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

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

    Definition Classes
    AnyRef → Any
  98. 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
  99. def finalize(): Unit

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

    Definition Classes
    FunctionArguments
  101. 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
  102. 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
  103. 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
  104. 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
  105. 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
  106. 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
  107. 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
  108. 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
  109. 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
  110. 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
  111. def functionCall2[T1, T2, R](t1: T1, t2: T2, r: R): (T1, T2) ⇒ R

    Definition Classes
    FunctionArguments
  112. 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
  113. 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
  114. 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
  115. def functionCall3[T1, T2, T3, R](t1: T1, t2: T2, t3: T3, r: R): (T1, T2, T3) ⇒ R

    Definition Classes
    FunctionArguments
  116. 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
  117. 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
  118. 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
  119. 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
  120. 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
  121. 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
  122. final def getClass(): Class[_]

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

    alias for 'there was'

    alias for 'there was'

    Definition Classes
    CalledMatchers
  124. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  125. 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
  126. def inOrder(stubbed: IgnoreStubs): Option[InOrder]

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

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

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

    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
  130. implicit def matcherToFunctionCall[A, R](values: (A, Matcher[R])): (A) ⇒ R

    Definition Classes
    FunctionArguments
  131. 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
  132. 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
  133. 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
  134. 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
  135. 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
  136. 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
  137. 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
  138. 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
  139. 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
  140. 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
  141. implicit def matcherToFunctionCall2[T1, T2, R](values: ((T1, T2), Matcher[R])): (T1, T2) ⇒ R

    Definition Classes
    FunctionArguments
  142. 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
  143. 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
  144. 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
  145. implicit def matcherToFunctionCall3[T1, T2, T3, R](values: ((T1, T2, T3), Matcher[R])): (T1, T2, T3) ⇒ R

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

    Definition Classes
    FunctionArguments
  147. 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
  148. 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
  149. 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
  150. 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
  151. 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
  152. implicit def matcherToPartialFunctionCall[A, R](values: (A, Matcher[R])): PartialFunction[A, R]

  153. 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
  154. 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
  155. 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
  156. 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
  157. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  158. 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
  159. def noCallsTo[T <: AnyRef](mocks: T*): Unit

    no calls made to the mock

    no calls made to the mock

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

    no more calls made to the mock

    no more calls made to the mock

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

    no more calls made to the mock

    no more calls made to the mock

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

    Definition Classes
    AnyRef
  163. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  164. 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
  165. implicit def ongoingStubbing[M](stubbing: ⇒ OngoingStubbing[_]): M

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

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

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

    returns

    the match result without any side-effects

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

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

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

    returns

    an object supporting the stub methods.

    Definition Classes
    MockitoStubs
  174. def there: Calls

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

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

    Definition Classes
    CalledMatchers
  175. 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
  176. implicit def timesFor(n: Int): Times

    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
  177. implicit def toFunctionCall[A, R](values: (A, R)): (A) ⇒ R

    Definition Classes
    FunctionArguments
  178. 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
  179. 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
  180. 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
  181. 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
  182. 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
  183. 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
  184. 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
  185. 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
  186. 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
  187. 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
  188. implicit def toFunctionCall2[T1, T2, R](values: ((T1, T2), R)): (T1, T2) ⇒ R

    Definition Classes
    FunctionArguments
  189. 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
  190. 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
  191. 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
  192. implicit def toFunctionCall3[T1, T2, T3, R](values: ((T1, T2, T3), R)): (T1, T2, T3) ⇒ R

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

    Definition Classes
    FunctionArguments
  194. 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
  195. 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
  196. 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
  197. 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
  198. 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
  199. 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
  200. implicit def toPartialFunctionCall[A, R](values: (A, R)): PartialFunction[A, R]

  201. def toString(): String

    Definition Classes
    AnyRef → Any
  202. 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
  203. implicit def typedEqualExpectation[T](t: ⇒ T): TypedEqualExpectation[T]

    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
  204. final def wait(): Unit

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

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

    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