Packages

trait MockitoFixture extends MockitoSessionFixture with MockitoSugar with ArgumentMatchersSugar

It automatically wraps each test in a MockitoScalaSession so the implicit verifications are applied

Just mix-in after your favourite suite, i.e.

class MyTest extends WordSpec with MockitoFixture
Annotations
@deprecated
Deprecated

(Since version 1.3.0) Please use org.mockito.scalatest.MockitoSugar or org.mockito.scalatest.AsyncMockitoSugar from the mockito-scala-scalatest module

Linear Supertypes
ArgumentMatchersSugar, MacroBasedMatchers, NumericMatchers, Tolerance, FunctionMatchers, NullMatchers, StringThatMatchers, ThatMatchers, EqMatchers_VersionSpecific, EqMatchers, AnyMatchers, MockitoSugar, ScalacticSerialisableHack, Rest, Verifications, DoSomething, MockitoEnhancer, MockCreator, MockitoSessionFixture, TestSuite, Suite, Serializable, Serializable, Assertions, TripleEquals, TripleEqualsSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MockitoFixture
  2. ArgumentMatchersSugar
  3. MacroBasedMatchers
  4. NumericMatchers
  5. Tolerance
  6. FunctionMatchers
  7. NullMatchers
  8. StringThatMatchers
  9. ThatMatchers
  10. EqMatchers_VersionSpecific
  11. EqMatchers
  12. AnyMatchers
  13. MockitoSugar
  14. ScalacticSerialisableHack
  15. Rest
  16. Verifications
  17. DoSomething
  18. MockitoEnhancer
  19. MockCreator
  20. MockitoSessionFixture
  21. TestSuite
  22. Suite
  23. Serializable
  24. Serializable
  25. Assertions
  26. TripleEquals
  27. TripleEqualsSupport
  28. AnyRef
  29. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class CheckingEqualizer[L] extends AnyRef
    Definition Classes
    TripleEqualsSupport
  2. class Equalizer[L] extends AnyRef
    Definition Classes
    TripleEqualsSupport
  3. trait NoArgTest extends () ⇒ Outcome with TestData
    Attributes
    protected
    Definition Classes
    TestSuite
  4. final class PlusOrMinusWrapper[T] extends AnyRef
    Definition Classes
    Tolerance

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. def !==[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]
    Definition Classes
    TripleEqualsSupport
  3. def !==(right: Null): TripleEqualsInvocation[Null]
    Definition Classes
    TripleEqualsSupport
  4. def !==[T](right: T): TripleEqualsInvocation[T]
    Definition Classes
    TripleEqualsSupport
  5. final def ##(): Int
    Definition Classes
    AnyRef → Any
  6. def *[T](implicit arg0: AnyMatcher[T]): T

    Alias for org.mockito.matchers.MacroBasedMatchers.any

  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def ===[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]
    Definition Classes
    TripleEqualsSupport
  9. def ===(right: Null): TripleEqualsInvocation[Null]
    Definition Classes
    TripleEqualsSupport
  10. def ===[T](right: T): TripleEqualsInvocation[T]
    Definition Classes
    TripleEqualsSupport
  11. def after(millis: Int): VerificationAfterDelay
    Definition Classes
    Verifications
  12. def any[T](implicit arg0: AnyMatcher[T]): T

    Delegates to ArgumentMatchers.any(), it's main purpose is to remove the () out of the method call, if you try to do that directly on the test you get this error

    Delegates to ArgumentMatchers.any(), it's main purpose is to remove the () out of the method call, if you try to do that directly on the test you get this error

    Error:(71, 46) polymorphic expression cannot be instantiated to expected type; found : [T]()T required: String when you try to something like ArgumentMatchers.any

    It also fixes the NullPointerException when used on an value class argument (IMPORTANT: YOU MUST PROVIDE THE TYPE FOR VALUE CLASSES)

    Definition Classes
    MacroBasedMatchers
  13. def anyBoolean: Boolean
    Definition Classes
    AnyMatchers
  14. def anyByte: Byte
    Definition Classes
    AnyMatchers
  15. def anyChar: Char
    Definition Classes
    AnyMatchers
  16. def anyDouble: Double
    Definition Classes
    AnyMatchers
  17. def anyFloat: Float
    Definition Classes
    AnyMatchers
  18. def anyInt: Int
    Definition Classes
    AnyMatchers
  19. def anyIterable[T]: Iterable[T]
    Definition Classes
    AnyMatchers
  20. def anyList[T]: List[T]
    Definition Classes
    AnyMatchers
  21. def anyLong: Long
    Definition Classes
    AnyMatchers
  22. def anyMap[K, V]: Map[K, V]
    Definition Classes
    AnyMatchers
  23. def anySeq[T]: Seq[T]
    Definition Classes
    AnyMatchers
  24. def anySet[T]: Set[T]
    Definition Classes
    AnyMatchers
  25. def anyShort: Short
    Definition Classes
    AnyMatchers
  26. def argMatching[T](pf: PartialFunction[Any, Unit]): T
    Definition Classes
    ThatMatchers
  27. def argThat[T](f: (T) ⇒ Boolean, desc: ⇒ String): T
    Definition Classes
    ThatMatchers
  28. def argThat[T](matcher: ArgumentMatcher[T]): T
    Definition Classes
    ThatMatchers
  29. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  30. macro def assert(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  31. macro def assert(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  32. macro def assertCompiles(code: String)(implicit pos: Position): Assertion
    Definition Classes
    Assertions
  33. macro def assertDoesNotCompile(code: String)(implicit pos: Position): Assertion
    Definition Classes
    Assertions
  34. def assertResult(expected: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  35. def assertResult(expected: Any, clue: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  36. def assertThrows[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T], pos: Position): Assertion
    Definition Classes
    Assertions
  37. macro def assertTypeError(code: String)(implicit pos: Position): Assertion
    Definition Classes
    Assertions
  38. macro def assume(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  39. macro def assume(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion
    Definition Classes
    Assertions
  40. def atLeast(minNumberOfInvocations: Int): VerificationMode
    Definition Classes
    Verifications
  41. def atLeastOnce: VerificationMode
    Definition Classes
    Verifications
  42. def atMost(maxNumberOfInvocations: Int): VerificationMode
    Definition Classes
    Verifications
  43. def booleanThat(matcher: ArgumentMatcher[Boolean]): Boolean
    Definition Classes
    ThatMatchers
  44. def byteThat(matcher: ArgumentMatcher[Byte]): Byte
    Definition Classes
    ThatMatchers
  45. def calls(wantedNumberOfInvocations: Int): VerificationMode
    Definition Classes
    Verifications
  46. def cancel(cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  47. def cancel(message: String, cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  48. def cancel(message: String)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  49. def cancel()(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  50. def charThat(matcher: ArgumentMatcher[Char]): Char
    Definition Classes
    ThatMatchers
  51. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  52. def contains(substring: String): String
    Definition Classes
    StringThatMatchers
  53. def convertEquivalenceToAToBConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: <:<[A, B]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  54. def convertEquivalenceToBToAConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: <:<[B, A]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  55. implicit def convertNumericToPlusOrMinusWrapper[T](pivot: T)(implicit arg0: Numeric[T]): PlusOrMinusWrapper[T]
    Definition Classes
    Tolerance
  56. def convertToCheckingEqualizer[T](left: T): CheckingEqualizer[T]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  57. implicit def convertToEqualizer[T](left: T): Equalizer[T]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  58. def defaultEquality[A]: Equality[A]
    Definition Classes
    TripleEqualsSupport
  59. def doAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21, R](f: (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, P21) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassWrapper[P7], arg8: ValueClassWrapper[P8], arg9: ValueClassWrapper[P9], arg10: ValueClassWrapper[P10], arg11: ValueClassWrapper[P11], arg12: ValueClassWrapper[P12], arg13: ValueClassWrapper[P13], arg14: ValueClassWrapper[P14], arg15: ValueClassWrapper[P15], arg16: ValueClassWrapper[P16], arg17: ValueClassWrapper[P17], arg18: ValueClassWrapper[P18], arg19: ValueClassWrapper[P19], arg20: ValueClassWrapper[P20], arg21: ValueClassWrapper[P21], arg22: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  60. def doAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, R](f: (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassWrapper[P7], arg8: ValueClassWrapper[P8], arg9: ValueClassWrapper[P9], arg10: ValueClassWrapper[P10], arg11: ValueClassWrapper[P11], arg12: ValueClassWrapper[P12], arg13: ValueClassWrapper[P13], arg14: ValueClassWrapper[P14], arg15: ValueClassWrapper[P15], arg16: ValueClassWrapper[P16], arg17: ValueClassWrapper[P17], arg18: ValueClassWrapper[P18], arg19: ValueClassWrapper[P19], arg20: ValueClassWrapper[P20], arg21: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  61. def doAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, R](f: (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassWrapper[P7], arg8: ValueClassWrapper[P8], arg9: ValueClassWrapper[P9], arg10: ValueClassWrapper[P10], arg11: ValueClassWrapper[P11], arg12: ValueClassWrapper[P12], arg13: ValueClassWrapper[P13], arg14: ValueClassWrapper[P14], arg15: ValueClassWrapper[P15], arg16: ValueClassWrapper[P16], arg17: ValueClassWrapper[P17], arg18: ValueClassWrapper[P18], arg19: ValueClassWrapper[P19], arg20: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  62. def doAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, R](f: (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassWrapper[P7], arg8: ValueClassWrapper[P8], arg9: ValueClassWrapper[P9], arg10: ValueClassWrapper[P10], arg11: ValueClassWrapper[P11], arg12: ValueClassWrapper[P12], arg13: ValueClassWrapper[P13], arg14: ValueClassWrapper[P14], arg15: ValueClassWrapper[P15], arg16: ValueClassWrapper[P16], arg17: ValueClassWrapper[P17], arg18: ValueClassWrapper[P18], arg19: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  63. def doAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, R](f: (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassWrapper[P7], arg8: ValueClassWrapper[P8], arg9: ValueClassWrapper[P9], arg10: ValueClassWrapper[P10], arg11: ValueClassWrapper[P11], arg12: ValueClassWrapper[P12], arg13: ValueClassWrapper[P13], arg14: ValueClassWrapper[P14], arg15: ValueClassWrapper[P15], arg16: ValueClassWrapper[P16], arg17: ValueClassWrapper[P17], arg18: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  64. def doAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, R](f: (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassWrapper[P7], arg8: ValueClassWrapper[P8], arg9: ValueClassWrapper[P9], arg10: ValueClassWrapper[P10], arg11: ValueClassWrapper[P11], arg12: ValueClassWrapper[P12], arg13: ValueClassWrapper[P13], arg14: ValueClassWrapper[P14], arg15: ValueClassWrapper[P15], arg16: ValueClassWrapper[P16], arg17: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  65. def doAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, R](f: (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassWrapper[P7], arg8: ValueClassWrapper[P8], arg9: ValueClassWrapper[P9], arg10: ValueClassWrapper[P10], arg11: ValueClassWrapper[P11], arg12: ValueClassWrapper[P12], arg13: ValueClassWrapper[P13], arg14: ValueClassWrapper[P14], arg15: ValueClassWrapper[P15], arg16: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  66. def doAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, R](f: (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassWrapper[P7], arg8: ValueClassWrapper[P8], arg9: ValueClassWrapper[P9], arg10: ValueClassWrapper[P10], arg11: ValueClassWrapper[P11], arg12: ValueClassWrapper[P12], arg13: ValueClassWrapper[P13], arg14: ValueClassWrapper[P14], arg15: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  67. def doAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, R](f: (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassWrapper[P7], arg8: ValueClassWrapper[P8], arg9: ValueClassWrapper[P9], arg10: ValueClassWrapper[P10], arg11: ValueClassWrapper[P11], arg12: ValueClassWrapper[P12], arg13: ValueClassWrapper[P13], arg14: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  68. def doAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, R](f: (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassWrapper[P7], arg8: ValueClassWrapper[P8], arg9: ValueClassWrapper[P9], arg10: ValueClassWrapper[P10], arg11: ValueClassWrapper[P11], arg12: ValueClassWrapper[P12], arg13: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  69. def doAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, R](f: (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassWrapper[P7], arg8: ValueClassWrapper[P8], arg9: ValueClassWrapper[P9], arg10: ValueClassWrapper[P10], arg11: ValueClassWrapper[P11], arg12: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  70. def doAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, R](f: (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassWrapper[P7], arg8: ValueClassWrapper[P8], arg9: ValueClassWrapper[P9], arg10: ValueClassWrapper[P10], arg11: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  71. def doAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, R](f: (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassWrapper[P7], arg8: ValueClassWrapper[P8], arg9: ValueClassWrapper[P9], arg10: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  72. def doAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, R](f: (P0, P1, P2, P3, P4, P5, P6, P7, P8) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassWrapper[P7], arg8: ValueClassWrapper[P8], arg9: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  73. def doAnswer[P0, P1, P2, P3, P4, P5, P6, P7, R](f: (P0, P1, P2, P3, P4, P5, P6, P7) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassWrapper[P7], arg8: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  74. def doAnswer[P0, P1, P2, P3, P4, P5, P6, R](f: (P0, P1, P2, P3, P4, P5, P6) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassWrapper[P6], arg7: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  75. def doAnswer[P0, P1, P2, P3, P4, P5, R](f: (P0, P1, P2, P3, P4, P5) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassWrapper[P5], arg6: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  76. def doAnswer[P0, P1, P2, P3, P4, R](f: (P0, P1, P2, P3, P4) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassWrapper[P4], arg5: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  77. def doAnswer[P0, P1, P2, P3, R](f: (P0, P1, P2, P3) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassWrapper[P3], arg4: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  78. def doAnswer[P0, P1, P2, R](f: (P0, P1, P2) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassWrapper[P2], arg3: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  79. def doAnswer[P0, P1, R](f: (P0, P1) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassWrapper[P1], arg2: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  80. def doAnswer[P0, R](f: (P0) ⇒ R)(implicit arg0: ValueClassWrapper[P0], arg1: ValueClassExtractor[R], classTag: ClassTag[P0]): Stubber
    Definition Classes
    DoSomething
  81. def doAnswer[R](l: ⇒ R)(implicit arg0: ValueClassExtractor[R]): Stubber
    Definition Classes
    DoSomething
  82. def doCallRealMethod: Stubber
    Definition Classes
    DoSomething
  83. def doNothing: Stubber
    Definition Classes
    DoSomething
  84. def doReturn[T](toBeReturned: T, toBeReturnedNext: T*)(implicit arg0: ValueClassExtractor[T]): Stubber
    Definition Classes
    DoSomething
  85. def doThrow[T <: Throwable](implicit arg0: ClassTag[T]): Stubber
    Definition Classes
    DoSomething
  86. def doThrow(toBeThrown: Throwable*): Stubber
    Definition Classes
    DoSomething
  87. def doubleThat(matcher: ArgumentMatcher[Double]): Double
    Definition Classes
    ThatMatchers
  88. def endsWith(suffix: String): String
    Definition Classes
    StringThatMatchers
  89. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  90. def eqTo[T](value: T)(implicit arg0: Equality[T], arg1: ValueClassExtractor[T], arg2: Prettifier): T

    Creates a matcher that delegates on {{org.scalactic.Equality}} so you can always customise how the values are compared Also works with value classes

    Creates a matcher that delegates on {{org.scalactic.Equality}} so you can always customise how the values are compared Also works with value classes

    Definition Classes
    EqMatchers_VersionSpecific
  91. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  92. final def execute(testName: String, configMap: ConfigMap, color: Boolean, durations: Boolean, shortstacks: Boolean, fullstacks: Boolean, stats: Boolean): Unit
    Definition Classes
    Suite
  93. def expectedTestCount(filter: Filter): Int
    Definition Classes
    Suite
  94. def fail(cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  95. def fail(message: String, cause: Throwable)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  96. def fail(message: String)(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  97. def fail()(implicit pos: Position): Nothing
    Definition Classes
    Assertions
  98. def floatThat(matcher: ArgumentMatcher[Float]): Float
    Definition Classes
    ThatMatchers
  99. def function0[T](value: T): () ⇒ T
    Definition Classes
    FunctionMatchers
  100. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  101. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  102. def ignoreStubs(mocks: AnyRef*): Array[AnyRef]
    Definition Classes
    MockitoEnhancer
  103. def inOrder(mocks: AnyRef*): InOrder
    Definition Classes
    Rest
  104. def intThat(matcher: ArgumentMatcher[Int]): Int
    Definition Classes
    ThatMatchers
  105. def intercept[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T], pos: Position): T
    Definition Classes
    Assertions
  106. implicit val invocationOps: (InvocationOnMock) ⇒ InvocationOnMockOps
    Definition Classes
    MockitoEnhancer
  107. def isA[T](implicit arg0: ClassTag[T]): T
    Definition Classes
    EqMatchers
  108. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  109. def longThat(matcher: ArgumentMatcher[Long]): Long
    Definition Classes
    ThatMatchers
  110. def lowPriorityTypeCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], ev: <:<[A, B]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  111. def matches(regex: String): String
    Definition Classes
    StringThatMatchers
  112. def mock[T <: AnyRef](name: String)(implicit arg0: ClassTag[T], arg1: scala.reflect.api.JavaUniverse.WeakTypeTag[T], defaultAnswer: DefaultAnswer, arg3: Prettifier): T
    Definition Classes
    MockitoEnhancer → MockCreator
  113. def mock[T <: AnyRef](mockSettings: MockSettings)(implicit arg0: ClassTag[T], arg1: scala.reflect.api.JavaUniverse.WeakTypeTag[T], arg2: Prettifier): T
    Definition Classes
    MockitoEnhancer → MockCreator
  114. def mock[T <: AnyRef](defaultAnswer: DefaultAnswer)(implicit arg0: ClassTag[T], arg1: scala.reflect.api.JavaUniverse.WeakTypeTag[T], arg2: Prettifier): T
    Definition Classes
    MockitoEnhancer → MockCreator
  115. def mock[T <: AnyRef](implicit arg0: ClassTag[T], arg1: scala.reflect.api.JavaUniverse.WeakTypeTag[T], defaultAnswer: DefaultAnswer, arg3: Prettifier): T
    Definition Classes
    MockitoEnhancer → MockCreator
  116. def mock[T <: AnyRef](defaultAnswer: Answer[_])(implicit arg0: ClassTag[T], arg1: scala.reflect.api.JavaUniverse.WeakTypeTag[T], arg2: Prettifier): T
    Definition Classes
    MockCreator
  117. def mockingDetails(toInspect: AnyRef): MockingDetails
    Definition Classes
    MockitoEnhancer
  118. implicit def mockitoSerialisableEquality[T]: Equality[T]
    Definition Classes
    ScalacticSerialisableHack
  119. val n: N
    Definition Classes
    NumericMatchers
  120. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  121. def nestedSuites: IndexedSeq[Suite]
    Definition Classes
    Suite
  122. def never: VerificationMode
    Definition Classes
    Verifications
  123. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  124. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  125. def only: VerificationMode
    Definition Classes
    Verifications
  126. def pending: Assertion with PendingStatement
    Definition Classes
    Assertions
  127. def pendingUntilFixed(f: ⇒ Unit)(implicit pos: Position): Assertion with PendingStatement
    Definition Classes
    Assertions
  128. def refEq[T](value: T, excludeFields: String*): T
    Definition Classes
    EqMatchers
  129. def rerunner: Option[String]
    Definition Classes
    Suite
  130. def reset(mocks: AnyRef*)(implicit arg0: Prettifier): Unit
    Definition Classes
    MockitoEnhancer
  131. def run(testName: Option[String], args: Args): Status
    Definition Classes
    Suite
  132. def runNestedSuites(args: Args): Status
    Attributes
    protected
    Definition Classes
    Suite
  133. def runTest(testName: String, args: Args): Status
    Attributes
    protected
    Definition Classes
    TestSuite → Suite
  134. def runTests(testName: Option[String], args: Args): Status
    Attributes
    protected
    Definition Classes
    Suite
  135. def same[T](value: T): T
    Definition Classes
    EqMatchers
  136. def shortThat(matcher: ArgumentMatcher[Short]): Short
    Definition Classes
    ThatMatchers
  137. def spy[T <: AnyRef](realObj: T, lenient: Boolean)(implicit arg0: ClassTag[T], arg1: scala.reflect.api.JavaUniverse.WeakTypeTag[T], arg2: Prettifier): T
    Definition Classes
    MockitoEnhancer → MockCreator
  138. def spyLambda[T <: AnyRef](realObj: T)(implicit arg0: ClassTag[T]): T
    Definition Classes
    MockitoEnhancer → MockCreator
  139. def startsWith(prefix: String): String
    Definition Classes
    StringThatMatchers
  140. final val succeed: Assertion
    Definition Classes
    Assertions
  141. def suiteId: String
    Definition Classes
    Suite
  142. def suiteName: String
    Definition Classes
    Suite
  143. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  144. def tags: Map[String, Set[String]]
    Definition Classes
    Suite
  145. def testDataFor(testName: String, theConfigMap: ConfigMap): TestData
    Definition Classes
    Suite
  146. def testNames: Set[String]
    Definition Classes
    Suite
  147. def timeout(millis: Int): VerificationWithTimeout
    Definition Classes
    Verifications
  148. def times(wantedNumberOfInvocations: Int): VerificationMode
    Definition Classes
    Verifications
  149. def toString(): String
    Definition Classes
    AnyRef → Any
  150. def typeCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], ev: <:<[B, A]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  151. implicit def unconstrainedEquality[A, B](implicit equalityOfA: Equality[A]): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
  152. def validateMockitoUsage(): Unit
    Definition Classes
    Rest
  153. def verify[T](mock: T, mode: VerificationMode): T
    Definition Classes
    Rest
  154. def verify[T](mock: T): T
    Definition Classes
    Rest
  155. def verifyNoMoreInteractions(mocks: AnyRef*): Unit
    Definition Classes
    MockitoEnhancer
  156. def verifyZeroInteractions(mocks: AnyRef*): Unit
    Definition Classes
    Rest
  157. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  158. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  159. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  160. def when[T](methodCall: T)(implicit arg0: ValueClassExtractor[T]): ScalaFirstStubbing[T]
    Definition Classes
    Rest
  161. def withClue[T](clue: Any)(fun: ⇒ T): T
    Definition Classes
    Assertions
  162. def withFixture(test: NoArgTest): Outcome
    Definition Classes
    MockitoSessionFixture → TestSuite
  163. def withSettings(implicit defaultAnswer: DefaultAnswer): MockSettings
    Definition Classes
    MockCreator

Deprecated Value Members

  1. def anyVal[T](implicit arg0: AnyMatcher[T]): T

    It was intended to be used instead of any when the argument is a value class, but any now supports value classes so it is not needed anymore

    It was intended to be used instead of any when the argument is a value class, but any now supports value classes so it is not needed anymore

    Definition Classes
    MacroBasedMatchers
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.2) Use 'any[T]' or '*[T]' instead

  2. def conversionCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], cnv: (B) ⇒ A): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The conversionCheckedConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  3. def convertEquivalenceToAToBConversionConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: (A) ⇒ B): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The convertEquivalenceToAToBConversionConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  4. def convertEquivalenceToBToAConversionConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: (B) ⇒ A): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The convertEquivalenceToBToAConversionConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  5. def eqToVal[T](value: T)(implicit arg0: Equality[T], arg1: ValueClassExtractor[T], arg2: Prettifier): T

    It was intended to be used instead of eqTo when the argument is a value class, but eqTo now supports value classes so it is not needed anymore

    It was intended to be used instead of eqTo when the argument is a value class, but eqTo now supports value classes so it is not needed anymore

    Definition Classes
    EqMatchers_VersionSpecific
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.2) Use 'eqTo' instead

  6. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  7. def isNotNull[T]: T
    Definition Classes
    NullMatchers
    Annotations
    @deprecated
    Deprecated

    (Since version 0.0.0) Using nulls in Scala? you naughty, naughty developer...

  8. def isNull[T]: T
    Definition Classes
    NullMatchers
    Annotations
    @deprecated
    Deprecated

    (Since version 0.0.0) Using nulls in Scala? you naughty, naughty developer...

  9. def lowPriorityConversionCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], cnv: (A) ⇒ B): CanEqual[A, B]
    Definition Classes
    TripleEquals → TripleEqualsSupport
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The lowPriorityConversionCheckedConstraint method has been deprecated and will be removed in a future version of ScalaTest. It is no longer needed now that the deprecation period of ConversionCheckedTripleEquals has expired. It will not be replaced.

  10. val styleName: String
    Definition Classes
    Suite
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The styleName lifecycle method has been deprecated and will be removed in a future version of ScalaTest with no replacement.

Inherited from ArgumentMatchersSugar

Inherited from MacroBasedMatchers

Inherited from NumericMatchers

Inherited from Tolerance

Inherited from FunctionMatchers

Inherited from NullMatchers

Inherited from StringThatMatchers

Inherited from ThatMatchers

Inherited from EqMatchers

Inherited from AnyMatchers

Inherited from MockitoSugar

Inherited from ScalacticSerialisableHack

Inherited from Rest

Inherited from Verifications

Inherited from DoSomething

Inherited from MockitoEnhancer

Inherited from MockCreator

Inherited from MockitoSessionFixture

Inherited from TestSuite

Inherited from Suite

Inherited from Serializable

Inherited from Serializable

Inherited from Assertions

Inherited from TripleEquals

Inherited from TripleEqualsSupport

Inherited from AnyRef

Inherited from Any

Ungrouped