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

This trait can be used to access Mockito functionalities.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Mockito
  2. MockitoMatchers
  3. CapturedArgument
  4. MockitoStubs
  5. MockitoStubsLowerImplicits
  6. CalledMatchers
  7. FunctionArguments
  8. FunctionArgumentsLowImplicits
  9. Expectations
  10. MatchResultStackTrace
  11. CanBeEqual
  12. ArgThat
  13. NumberOfTimes
  14. MocksCreation
  15. ClassesOf
  16. TheMockitoMocker
  17. AnyRef
  18. 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 CanBeEqualExpectation[T] extends AnyRef

    Permalink
    Definition Classes
    CanBeEqual
  5. class Descriptible[T] extends AnyRef

    Permalink
    Definition Classes
    Expectations
  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. type ¬[A] = (A) ⇒ Nothing

    Permalink
    Definition Classes
    ArgThat

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 anyByte: Byte

    Permalink
    Definition Classes
    MockitoMatchers
  10. def anyChar: Char

    Permalink
    Definition Classes
    MockitoMatchers
  11. def anyDouble: Double

    Permalink
    Definition Classes
    MockitoMatchers
  12. def anyFloat: Float

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

    Permalink
    Definition Classes
    MockitoMatchers
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. def anyFunction2[T1, T2, R]: (T1, T2) ⇒ R

    Permalink
    Definition Classes
    MockitoMatchers
  25. 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
  26. 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
  27. 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
  28. def anyFunction3[T1, T2, T3, R]: (T1, T2, T3) ⇒ R

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

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

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

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

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

    Permalink
    Definition Classes
    MockitoMatchers
  34. 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
  35. def anyInt: Int

    Permalink
    Definition Classes
    MockitoMatchers
  36. def anyLong: Long

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

    Permalink
    Definition Classes
    MockitoMatchers
  38. def anyShort: Short

    Permalink
    Definition Classes
    MockitoMatchers
  39. def anyString: String

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

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

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

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

    Permalink
    Definition Classes
    FunctionArguments
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. implicit def canBeEqual[T](t: ⇒ T): CanBeEqualExpectation[T]

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

    Permalink
    Attributes
    protected
    Definition Classes
    Expectations
  77. def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    Expectations
  78. def checkResultFailure(r: ⇒ Result): Result

    Permalink
    Attributes
    protected
    Definition Classes
    Expectations
  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}

    Permalink
    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}

    Permalink
    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}

    Permalink
    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}

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Expectations
  90. 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
  91. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    FunctionArguments
  96. 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
  97. 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
  98. 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
  99. 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
  100. 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
  101. 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
  102. 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
  103. 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
  104. 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
  105. 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
  106. def functionCall2[T1, T2, R](t1: T1, t2: T2, r: R): (T1, T2) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  107. 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
  108. 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
  109. 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
  110. def functionCall3[T1, T2, T3, R](t1: T1, t2: T2, t3: T3, r: R): (T1, T2, T3) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  111. 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
  112. 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
  113. 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
  114. 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
  115. 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
  116. 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
  117. final def getClass(): Class[_]

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

    Permalink

    alias for 'there was'

    alias for 'there was'

    Definition Classes
    CalledMatchers
  119. def hashCode(): Int

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Expectations
  125. implicit def matcherToFunctionCall[A, R](values: (A, Matcher[R])): (A) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  126. 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
  127. 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
  128. 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
  129. 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
  130. 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
  131. 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
  132. 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
  133. 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
  134. 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
  135. 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
  136. implicit def matcherToFunctionCall2[T1, T2, R](values: ((T1, T2), Matcher[R])): (T1, T2) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  137. 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
  138. 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
  139. 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
  140. implicit def matcherToFunctionCall3[T1, T2, T3, R](values: ((T1, T2, T3), Matcher[R])): (T1, T2, T3) ⇒ R

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

    Permalink
    Definition Classes
    FunctionArguments
  142. 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
  143. 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
  144. 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
  145. 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
  146. 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
  147. implicit def matcherToPartialFunctionCall[A, R](values: (A, Matcher[R])): PartialFunction[A, R]

    Permalink
  148. 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
  149. 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
  150. 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
  151. 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
  152. final def ne(arg0: AnyRef): Boolean

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

    Permalink

    no calls made to the mock

    no calls made to the mock

    Definition Classes
    CalledMatchers
  155. 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
  156. 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
  157. final def notify(): Unit

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Expectations
  164. def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

    Permalink
    Attributes
    protected
    Definition Classes
    MatchResultStackTrace
  165. 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
  166. 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
  167. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink

    returns

    an object supporting the stub methods.

    Definition Classes
    MockitoStubs
  169. def there: Calls

    Permalink

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

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

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

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

    Permalink
    Definition Classes
    FunctionArguments
  173. 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
  174. 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
  175. 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
  176. 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
  177. 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
  178. 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
  179. 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
  180. 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
  181. 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
  182. 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
  183. implicit def toFunctionCall2[T1, T2, R](values: ((T1, T2), R)): (T1, T2) ⇒ R

    Permalink
    Definition Classes
    FunctionArguments
  184. 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
  185. 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
  186. 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
  187. implicit def toFunctionCall3[T1, T2, T3, R](values: ((T1, T2, T3), R)): (T1, T2, T3) ⇒ R

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

    Permalink
    Definition Classes
    FunctionArguments
  189. 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
  190. 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
  191. 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
  192. 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
  193. 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
  194. 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
  195. implicit def toPartialFunctionCall[A, R](values: (A, R)): PartialFunction[A, R]

    Permalink
  196. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  197. 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
  198. final def wait(): Unit

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

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

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

Inherited from MockitoMatchers

Inherited from CapturedArgument

Inherited from MockitoStubs

Inherited from CalledMatchers

Inherited from FunctionArguments

Inherited from Expectations

Inherited from MatchResultStackTrace

Inherited from CanBeEqual

Inherited from ArgThat

Inherited from NumberOfTimes

Inherited from MocksCreation

Inherited from ClassesOf

Inherited from TheMockitoMocker

Inherited from AnyRef

Inherited from Any

Ungrouped