trait CalledMatchers extends NumberOfTimes with FunctionArguments with TheMockitoMocker with Expectations
This trait provides methods to declare expectations on mock calls:
there was one(mockedList).get(0) there was no(mockedList).get(0) there was two(mockedList).get(0) there was three(mockedList).get(0) there was 4.times(mockedList).get(0) there was atLeastOne(mockedList).get(0) there was atLeastTwo(mockedList).get(0) there was atLeastThree(mockedList).get(0) there was atLeast(4)(mockedList).get(0) there was atMostOne(mockedList).get(0) there was atMostTwo(mockedList).get(0) there was atMostThree(mockedList).get(0) there was atMost(4)(mockedList).get(0) It is also possible to use a different wording: there were two(mockedList).get(0) got { two(mockedList).get(0) }
- Alphabetic
- By Inheritance
- CalledMatchers
- TheMockitoMocker
- FunctionArguments
- FunctionArgumentsLowImplicits
- Expectations
- ExpectationsDescription
- TypedEqual
- ExpectationsCreation
- MatchResultStackTrace
- ArgThat
- NumberOfTimes
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
Descriptible[T] extends AnyRef
- Definition Classes
- ExpectationsDescription
-
class
ExpectationDescription extends AnyRef
- Definition Classes
- ExpectationsDescription
-
class
TypedEqualExpectation[T] extends AnyRef
- Definition Classes
- TypedEqual
-
class
Calls extends AnyRef
class supporting 'was' and 'were' methods to forward mockito calls to the CallsMatcher matcher
- case class MockitoVerificationWithTimeout(duration: Duration) extends Product with Serializable
-
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
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
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
after(duration: Duration): MockitoVerificationWithTimeout
add a timeout constraint to the verification
-
def
anArgThat[T, U <: T](m: Matcher[U]): T
allows to use a hamcrest matchers to match parameters.
allows to use a hamcrest matchers to match parameters.
- Definition Classes
- ArgThat
-
implicit
def
argThat[T, U <: T](m: Matcher[U]): T
allows to use a specs matcher to match parameters by encapsulating it as a Hamcrest matcher.
allows to use a specs matcher to match parameters by encapsulating it as a Hamcrest matcher.
- Definition Classes
- ArgThat
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
atLeast[T <: AnyRef](i: Int)(mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at least n calls made to the mock
-
def
atLeastOne[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at least 1 call made to the mock
-
def
atLeastThree[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at least 3 calls made to the mock
-
def
atLeastTwo[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at least 2 calls made to the mock
-
def
atMost[T <: AnyRef](i: Int)(mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at most n calls made to the mock
-
def
atMostOne[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at most 1 call made to the mock
-
def
atMostThree[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at most 3 calls made to the mock
-
def
atMostTwo[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
at most 2 calls made to the mock
-
def
callMatching[A, R](a: A, m: Matcher[R]): (A) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching2[T1, T2, R](t1: T1, t2: T2, m: Matcher[R]): (T1, T2) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, t20: T20, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, t20: T20, t21: T21, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, t20: T20, t21: T21, t22: T22, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching3[T1, T2, T3, R](t1: T1, t2: T2, t3: T3, m: Matcher[R]): (T1, T2, T3) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching4[T1, T2, T3, T4, R](t1: T1, t2: T2, t3: T3, t4: T4, m: Matcher[R]): (T1, T2, T3, T4) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching5[T1, T2, T3, T4, T5, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, m: Matcher[R]): (T1, T2, T3, T4, T5) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching6[T1, T2, T3, T4, T5, T6, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, m: Matcher[R]): (T1, T2, T3, T4, T5, T6) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching7[T1, T2, T3, T4, T5, T6, T7, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching8[T1, T2, T3, T4, T5, T6, T7, T8, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ R
- Definition Classes
- FunctionArguments
-
def
callMatching9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, m: Matcher[R]): (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ R
- Definition Classes
- FunctionArguments
-
def
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
-
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
-
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
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
createExpectable[T](t: ⇒ T, alias: Option[(String) ⇒ String]): Expectable[T]
- returns
an Expectable with a description function
- Definition Classes
- ExpectationsCreation
-
def
createExpectable[T](t: ⇒ T, alias: (String) ⇒ String): Expectable[T]
- returns
an Expectable with a description function
- Definition Classes
- ExpectationsCreation
-
def
createExpectable[T](t: ⇒ T, alias: ⇒ String): Expectable[T]
- returns
an Expectable with a description
- Definition Classes
- ExpectationsCreation
-
def
createExpectable[T](t: ⇒ T): Expectable[T]
- returns
an Expectable
- Definition Classes
- ExpectationsCreation
-
def
createExpectableWithShowAs[T](t: ⇒ T, showAs: ⇒ String): Expectable[T]
- returns
an Expectable with a function to show the element T
- Definition Classes
- ExpectationsCreation
-
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
-
implicit
def
describeExpectation(description: String): ExpectationDescription
- Definition Classes
- ExpectationsDescription
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exactly[T <: AnyRef](n: Int)(mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
exactly n calls only made to the mock
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
functionCall[A, R](a: A, r: R): (A) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall2[T1, T2, R](t1: T1, t2: T2, r: R): (T1, T2) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, t20: T20, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, t20: T20, t21: T21, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, t10: T10, t11: T11, t12: T12, t13: T13, t14: T14, t15: T15, t16: T16, t17: T17, t18: T18, t19: T19, t20: T20, t21: T21, t22: T22, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall3[T1, T2, T3, R](t1: T1, t2: T2, t3: T3, r: R): (T1, T2, T3) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall4[T1, T2, T3, T4, R](t1: T1, t2: T2, t3: T3, t4: T4, r: R): (T1, T2, T3, T4) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall5[T1, T2, T3, T4, T5, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, r: R): (T1, T2, T3, T4, T5) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall6[T1, T2, T3, T4, T5, T6, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, r: R): (T1, T2, T3, T4, T5, T6) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall7[T1, T2, T3, T4, T5, T6, T7, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, r: R): (T1, T2, T3, T4, T5, T6, T7) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall8[T1, T2, T3, T4, T5, T6, T7, T8, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, r: R): (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ R
- Definition Classes
- FunctionArguments
-
def
functionCall9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R](t1: T1, t2: T2, t3: T3, t4: T4, t5: T5, t6: T6, t7: T7, t8: T8, t9: T9, r: R): (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ R
- Definition Classes
- FunctionArguments
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
got[T](t: ⇒ T): MatchResult[T]
alias for 'there was'
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def inOrder(stubbed: IgnoreStubs): Option[InOrder]
- def inOrder(mocks: AnyRef*): Option[InOrder]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
implicit
def
matcherToFunctionCall[A, R](values: (A, Matcher[R])): (A) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall2[T1, T2, R](values: ((T1, T2), Matcher[R])): (T1, T2) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall3[T1, T2, T3, R](values: ((T1, T2, T3), Matcher[R])): (T1, T2, T3) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall4[T1, T2, T3, T4, R](values: ((T1, T2, T3, T4), Matcher[R])): (T1, T2, T3, T4) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall5[T1, T2, T3, T4, T5, R](values: ((T1, T2, T3, T4, T5), Matcher[R])): (T1, T2, T3, T4, T5) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall6[T1, T2, T3, T4, T5, T6, R](values: ((T1, T2, T3, T4, T5, T6), Matcher[R])): (T1, T2, T3, T4, T5, T6) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall7[T1, T2, T3, T4, T5, T6, T7, R](values: ((T1, T2, T3, T4, T5, T6, T7), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall8[T1, T2, T3, T4, T5, T6, T7, T8, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToFunctionCall9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9), Matcher[R])): (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
matcherToPartialFunctionCall[A, R](values: (A, Matcher[R])): PartialFunction[A, R]
- Definition Classes
- FunctionArgumentsLowImplicits
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
no[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
no call made to the mock
-
def
noCallsTo[T <: AnyRef](mocks: T*): Unit
no calls made to the mock
-
def
noMoreCallsTo[T <: AnyRef](stubbed: IgnoreStubs): Unit
no more calls made to the mock
-
def
noMoreCallsTo[T <: AnyRef](mocks: T*): Unit
no more calls made to the mock
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
one[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
one call only made to the mock
-
def
partialCallMatching[A, R](a: A, m: Matcher[R]): PartialFunction[A, R]
- Definition Classes
- FunctionArgumentsLowImplicits
-
def
partialFunctionCall[A, R](a: A, r: R): PartialFunction[A, R]
- Definition Classes
- FunctionArgumentsLowImplicits
-
def
sandboxMatchResult[T](mr: ⇒ MatchResult[T]): MatchResult[T]
- returns
the match result without any side-effects
- Attributes
- protected
- Definition Classes
- ExpectationsCreation
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
there: Calls
create an object supporting 'was' and 'were' methods
-
def
three[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
three calls only made to the mock
-
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
-
implicit
def
toFunctionCall[A, R](values: (A, R)): (A) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall10[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall11[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall12[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall13[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall14[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall15[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall16[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall17[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall19[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall2[T1, T2, R](values: ((T1, T2), R)): (T1, T2) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall20[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall21[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall22[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall3[T1, T2, T3, R](values: ((T1, T2, T3), R)): (T1, T2, T3) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall4[T1, T2, T3, T4, R](values: ((T1, T2, T3, T4), R)): (T1, T2, T3, T4) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall5[T1, T2, T3, T4, T5, R](values: ((T1, T2, T3, T4, T5), R)): (T1, T2, T3, T4, T5) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall6[T1, T2, T3, T4, T5, T6, R](values: ((T1, T2, T3, T4, T5, T6), R)): (T1, T2, T3, T4, T5, T6) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall7[T1, T2, T3, T4, T5, T6, T7, R](values: ((T1, T2, T3, T4, T5, T6, T7), R)): (T1, T2, T3, T4, T5, T6, T7) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall8[T1, T2, T3, T4, T5, T6, T7, T8, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8), R)): (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toFunctionCall9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R](values: ((T1, T2, T3, T4, T5, T6, T7, T8, T9), R)): (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ R
- Definition Classes
- FunctionArguments
-
implicit
def
toInOrderMode[T](calls: ⇒ T)(implicit arg0: AsResult[T]): ToInOrderMode[T]
implicit def supporting calls in order
-
implicit
def
toPartialFunctionCall[A, R](values: (A, R)): PartialFunction[A, R]
- Definition Classes
- FunctionArgumentsLowImplicits
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
two[T <: AnyRef](mock: T)(implicit anOrder: Option[InOrder] = inOrder()): T
two calls only made to the mock
-
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
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )