Trait

org.mockito.integrations.scalatest

IdiomaticMockitoFixture

Related Doc: package scalatest

Permalink

trait IdiomaticMockitoFixture extends MockitoSessionFixture with IdiomaticMockito 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 IdiomaticMockitoFixture
Linear Supertypes
ArgumentMatchersSugar, FunctionMatchers, NullMatchers, StringThatMatchers, ThatMatchers, EqMatchers, AnyMatchers, IdiomaticMockito, MockCreator, MockitoSessionFixture, TestSuite, Suite, Serializable, Serializable, Assertions, TripleEquals, TripleEqualsSupport, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IdiomaticMockitoFixture
  2. ArgumentMatchersSugar
  3. FunctionMatchers
  4. NullMatchers
  5. StringThatMatchers
  6. ThatMatchers
  7. EqMatchers
  8. AnyMatchers
  9. IdiomaticMockito
  10. MockCreator
  11. MockitoSessionFixture
  12. TestSuite
  13. Suite
  14. Serializable
  15. Serializable
  16. Assertions
  17. TripleEquals
  18. TripleEqualsSupport
  19. AnyRef
  20. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Again extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  2. class Answered extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  3. class AnsweredBy extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  4. class AssertionsHelper extends AnyRef

    Permalink
    Definition Classes
    Assertions
  5. case class AtLeast(times: Int) extends Product with Serializable

    Permalink
    Definition Classes
    IdiomaticMockito
  6. case class AtMost(times: Int) extends Product with Serializable

    Permalink
    Definition Classes
    IdiomaticMockito
  7. class Called extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  8. class CheckingEqualizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport
  9. implicit class DoSomethingOps[R] extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  10. class Equalizer[L] extends AnyRef

    Permalink
    Definition Classes
    TripleEqualsSupport
  11. class Never extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  12. case class NeverInstance[T <: AnyRef](mock: T) extends Product with Serializable

    Permalink
    Definition Classes
    IdiomaticMockito
  13. trait NoArgTest extends () ⇒ Outcome with TestData

    Permalink
    Attributes
    protected
    Definition Classes
    TestSuite
  14. class On extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  15. implicit class OngoingStubbingOps[T] extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  16. class OnlyOn extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  17. class RealMethod extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  18. class Returned extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  19. class ReturnedBy[R] extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  20. implicit class StubbingOps[T] extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  21. implicit class ThrowSomethingOps[R <: Throwable] extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  22. class Thrown extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  23. class ThrownBy extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito
  24. case class Times(times: Int) extends Product with Serializable

    Permalink
    Definition Classes
    IdiomaticMockito
  25. implicit class VerificationOps[T <: AnyRef] extends AnyRef

    Permalink
    Definition Classes
    IdiomaticMockito

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. def !==[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  3. def !==(right: Null): TripleEqualsInvocation[Null]

    Permalink
    Definition Classes
    TripleEqualsSupport
  4. def !==[T](right: T): TripleEqualsInvocation[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  5. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  6. def *[T]: T

    Permalink
    Definition Classes
    IdiomaticMockito
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def ===[T](right: Spread[T]): TripleEqualsInvocationOnSpread[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  9. def ===(right: Null): TripleEqualsInvocation[Null]

    Permalink
    Definition Classes
    TripleEqualsSupport
  10. def ===[T](right: T): TripleEqualsInvocation[T]

    Permalink
    Definition Classes
    TripleEqualsSupport
  11. object InOrder

    Permalink
    Definition Classes
    IdiomaticMockito
  12. val again: Again

    Permalink
    Definition Classes
    IdiomaticMockito
  13. val answered: Answered

    Permalink
    Definition Classes
    IdiomaticMockito
  14. def any[T]: T

    Permalink

    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

    Definition Classes
    AnyMatchers
  15. def anyBoolean: Boolean

    Permalink

    Delegates to ArgumentMatchers.anyBoolean(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyBoolean(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  16. def anyByte: Byte

    Permalink

    Delegates to ArgumentMatchers.anyByte(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyByte(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  17. def anyChar: Char

    Permalink

    Delegates to ArgumentMatchers.anyChar(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyChar(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  18. def anyDouble: Double

    Permalink

    Delegates to ArgumentMatchers.anyDouble(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyDouble(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  19. def anyFloat: Float

    Permalink

    Delegates to ArgumentMatchers.anyFloat(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyFloat(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  20. def anyInt: Int

    Permalink

    Delegates to ArgumentMatchers.anyInt(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyInt(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  21. def anyIterable[T]: Iterable[T]

    Permalink

    Iterable matcher that use Scala Iterable to avoid compile errors like Error:(40, 60) type mismatch; found : Iterable[String] (in java.util) required: Iterable[?] (in scala.collection.immutable)

    Iterable matcher that use Scala Iterable to avoid compile errors like Error:(40, 60) type mismatch; found : Iterable[String] (in java.util) required: Iterable[?] (in scala.collection.immutable)

    when trying to do something like ArgumentMatchers.anyIterable[String]()

    Definition Classes
    AnyMatchers
  22. def anyList[T]: List[T]

    Permalink

    List matcher that use Scala List to avoid compile errors like Error:(40, 60) type mismatch; found : List[String] (in java.util) required: List[?] (in scala.collection.immutable)

    List matcher that use Scala List to avoid compile errors like Error:(40, 60) type mismatch; found : List[String] (in java.util) required: List[?] (in scala.collection.immutable)

    when trying to do something like ArgumentMatchers.anyList[String]()

    Definition Classes
    AnyMatchers
  23. def anyLong: Long

    Permalink

    Delegates to ArgumentMatchers.anyLong(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyLong(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  24. def anyMap[K, V]: Map[K, V]

    Permalink

    Map matcher that use Scala Map to avoid compile errors like Error:(40, 60) type mismatch; found : Map[String, String] (in java.util) required: Map[?] (in scala.collection.immutable)

    Map matcher that use Scala Map to avoid compile errors like Error:(40, 60) type mismatch; found : Map[String, String] (in java.util) required: Map[?] (in scala.collection.immutable)

    when trying to do something like ArgumentMatchers.anyMap[String, String]()

    Definition Classes
    AnyMatchers
  25. def anySeq[T]: Seq[T]

    Permalink

    Seq matcher that use Scala Seq to avoid compile errors like Error:(40, 60) type mismatch; found : List[String] (in java.util) required: Seq[?] (in scala.collection.immutable)

    Seq matcher that use Scala Seq to avoid compile errors like Error:(40, 60) type mismatch; found : List[String] (in java.util) required: Seq[?] (in scala.collection.immutable)

    when trying to do something like ArgumentMatchers.anyList[String]()

    Definition Classes
    AnyMatchers
  26. def anySet[T]: Set[T]

    Permalink

    Set matcher that use Scala Set to avoid compile errors like Error:(40, 60) type mismatch; found : Set[String] (in java.util) required: Set[?] (in scala.collection.immutable)

    Set matcher that use Scala Set to avoid compile errors like Error:(40, 60) type mismatch; found : Set[String] (in java.util) required: Set[?] (in scala.collection.immutable)

    when trying to do something like ArgumentMatchers.anySet[String]()

    Definition Classes
    AnyMatchers
  27. def anyShort: Short

    Permalink

    Delegates to ArgumentMatchers.anyShort(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Delegates to ArgumentMatchers.anyShort(), it's only here so we expose all the ArgumentMatchers on a single place as any[T] would do the job just fine

    Definition Classes
    AnyMatchers
  28. def anyVal[T](implicit valueClassMatchers: ValueClassMatchers[T]): T

    Permalink

    Wraps the standard 'any' matcher on the value class provided, this one requires the type to be explicit

    Wraps the standard 'any' matcher on the value class provided, this one requires the type to be explicit

    Definition Classes
    AnyMatchers
  29. def argThat[T](matcher: ArgumentMatcher[T]): T

    Permalink

    Delegates to ArgumentMatchers.argThat(matcher), it's only here so we expose all the ArgumentMatchers on a single place

    Delegates to ArgumentMatchers.argThat(matcher), it's only here so we expose all the ArgumentMatchers on a single place

    Definition Classes
    ThatMatchers
  30. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  31. macro def assert(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  32. macro def assert(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  33. macro def assertCompiles(code: String)(implicit pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  34. macro def assertDoesNotCompile(code: String)(implicit pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  35. def assertResult(expected: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  36. def assertResult(expected: Any, clue: Any)(actual: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  37. def assertThrows[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T], pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  38. macro def assertTypeError(code: String)(implicit pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  39. val assertionsHelper: AssertionsHelper

    Permalink
    Definition Classes
    Assertions
  40. macro def assume(condition: Boolean, clue: Any)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  41. macro def assume(condition: Boolean)(implicit prettifier: Prettifier, pos: Position): Assertion

    Permalink
    Definition Classes
    Assertions
  42. val atLeastEightTimesOn: AtLeast

    Permalink
    Definition Classes
    IdiomaticMockito
  43. val atLeastFiveTimesOn: AtLeast

    Permalink
    Definition Classes
    IdiomaticMockito
  44. val atLeastFourTimesOn: AtLeast

    Permalink
    Definition Classes
    IdiomaticMockito
  45. val atLeastNineTimesOn: AtLeast

    Permalink
    Definition Classes
    IdiomaticMockito
  46. val atLeastOnceOn: AtLeast

    Permalink
    Definition Classes
    IdiomaticMockito
  47. val atLeastSevenTimesOn: AtLeast

    Permalink
    Definition Classes
    IdiomaticMockito
  48. val atLeastSixTimesOn: AtLeast

    Permalink
    Definition Classes
    IdiomaticMockito
  49. val atLeastTenTimesOn: AtLeast

    Permalink
    Definition Classes
    IdiomaticMockito
  50. val atLeastThreeTimesOn: AtLeast

    Permalink
    Definition Classes
    IdiomaticMockito
  51. val atLeastThriceOn: AtLeast

    Permalink
    Definition Classes
    IdiomaticMockito
  52. val atLeastTwiceOn: AtLeast

    Permalink
    Definition Classes
    IdiomaticMockito
  53. val atMostEightTimesOn: AtMost

    Permalink
    Definition Classes
    IdiomaticMockito
  54. val atMostFiveTimesOn: AtMost

    Permalink
    Definition Classes
    IdiomaticMockito
  55. val atMostFourTimesOn: AtMost

    Permalink
    Definition Classes
    IdiomaticMockito
  56. val atMostNineTimesOn: AtMost

    Permalink
    Definition Classes
    IdiomaticMockito
  57. val atMostOnceOn: AtMost

    Permalink
    Definition Classes
    IdiomaticMockito
  58. val atMostSevenTimesOn: AtMost

    Permalink
    Definition Classes
    IdiomaticMockito
  59. val atMostSixTimesOn: AtMost

    Permalink
    Definition Classes
    IdiomaticMockito
  60. val atMostTenTimesOn: AtMost

    Permalink
    Definition Classes
    IdiomaticMockito
  61. val atMostThreeTimesOn: AtMost

    Permalink
    Definition Classes
    IdiomaticMockito
  62. val atMostThriceOn: AtMost

    Permalink
    Definition Classes
    IdiomaticMockito
  63. val atMostTwiceOn: AtMost

    Permalink
    Definition Classes
    IdiomaticMockito
  64. def booleanThat(matcher: ArgumentMatcher[Boolean]): Boolean

    Permalink

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Definition Classes
    ThatMatchers
  65. def byteThat(matcher: ArgumentMatcher[Byte]): Byte

    Permalink

    Delegates the call to argThat but using the Scala "primitives", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Delegates the call to argThat but using the Scala "primitives", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Definition Classes
    ThatMatchers
  66. val called: Called

    Permalink
    Definition Classes
    IdiomaticMockito
  67. def cancel(cause: Throwable)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  68. def cancel(message: String, cause: Throwable)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  69. def cancel(message: String)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  70. def cancel()(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  71. def charThat(matcher: ArgumentMatcher[Char]): Char

    Permalink

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Definition Classes
    ThatMatchers
  72. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  73. def contains(substring: String): String

    Permalink

    Delegates to ArgumentMatchers.contains(), it's only here so we expose all the ArgumentMatchers on a single place

    Delegates to ArgumentMatchers.contains(), it's only here so we expose all the ArgumentMatchers on a single place

    Definition Classes
    StringThatMatchers
  74. def conversionCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], cnv: (B) ⇒ A): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  75. def convertEquivalenceToAToBConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: <:<[A, B]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  76. def convertEquivalenceToAToBConversionConstraint[A, B](equivalenceOfB: Equivalence[B])(implicit ev: (A) ⇒ B): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  77. def convertEquivalenceToBToAConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: <:<[B, A]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  78. def convertEquivalenceToBToAConversionConstraint[A, B](equivalenceOfA: Equivalence[A])(implicit ev: (B) ⇒ A): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  79. def convertToCheckingEqualizer[T](left: T): CheckingEqualizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  80. implicit def convertToEqualizer[T](left: T): Equalizer[T]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  81. def defaultEquality[A]: Equality[A]

    Permalink
    Definition Classes
    TripleEqualsSupport
  82. def doubleThat(matcher: ArgumentMatcher[Double]): Double

    Permalink

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Definition Classes
    ThatMatchers
  83. val eightTimesOn: Times

    Permalink
    Definition Classes
    IdiomaticMockito
  84. def endsWith(suffix: String): String

    Permalink

    Delegates to ArgumentMatchers.endsWith(), it's only here so we expose all the ArgumentMatchers on a single place

    Delegates to ArgumentMatchers.endsWith(), it's only here so we expose all the ArgumentMatchers on a single place

    Definition Classes
    StringThatMatchers
  85. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  86. def eqTo[T](value: T): T

    Permalink

    Delegates to ArgumentMatchers.eq(), it renames the method to eqTo to avoid clashes with the Scala eq method used for reference equality

    Delegates to ArgumentMatchers.eq(), it renames the method to eqTo to avoid clashes with the Scala eq method used for reference equality

    Definition Classes
    EqMatchers
  87. def eqToVal[T](value: Any)(implicit valueClassMatchers: ValueClassMatchers[T]): T

    Permalink

    Wraps the standard 'ArgumentMatchers.eq()' matcher on the value class provided, this one requires the type to be explicit

    Wraps the standard 'ArgumentMatchers.eq()' matcher on the value class provided, this one requires the type to be explicit

    Definition Classes
    EqMatchers
  88. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  89. final def execute(testName: String, configMap: ConfigMap, color: Boolean, durations: Boolean, shortstacks: Boolean, fullstacks: Boolean, stats: Boolean): Unit

    Permalink
    Definition Classes
    Suite
  90. def expectedTestCount(filter: Filter): Int

    Permalink
    Definition Classes
    Suite
  91. def fail(cause: Throwable)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  92. def fail(message: String, cause: Throwable)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  93. def fail(message: String)(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  94. def fail()(implicit pos: Position): Nothing

    Permalink
    Definition Classes
    Assertions
  95. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  96. val fiveTimesOn: Times

    Permalink
    Definition Classes
    IdiomaticMockito
  97. def floatThat(matcher: ArgumentMatcher[Float]): Float

    Permalink

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Definition Classes
    ThatMatchers
  98. val fourTimesOn: Times

    Permalink
    Definition Classes
    IdiomaticMockito
  99. def function0[T](value: T): () ⇒ T

    Permalink
    Definition Classes
    FunctionMatchers
  100. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  101. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  102. def intThat(matcher: ArgumentMatcher[Int]): Int

    Permalink

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Definition Classes
    ThatMatchers
  103. def intercept[T <: AnyRef](f: ⇒ Any)(implicit classTag: ClassTag[T], pos: Position): T

    Permalink
    Definition Classes
    Assertions
  104. def isA[T](implicit classTag: ClassTag[T]): T

    Permalink

    Delegates to ArgumentMatchers.isA(type: Class[T]) It provides a nicer API as you can, for instance, do isA[String] instead of isA(classOf[String])

    Delegates to ArgumentMatchers.isA(type: Class[T]) It provides a nicer API as you can, for instance, do isA[String] instead of isA(classOf[String])

    Definition Classes
    EqMatchers
  105. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  106. def longThat(matcher: ArgumentMatcher[Long]): Long

    Permalink

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary conversion that would be necessary used the Java version

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary conversion that would be necessary used the Java version

    Definition Classes
    ThatMatchers
  107. def lowPriorityConversionCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], cnv: (A) ⇒ B): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  108. def lowPriorityTypeCheckedConstraint[A, B](implicit equivalenceOfB: Equivalence[B], ev: <:<[A, B]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  109. def matches(regex: String): String

    Permalink

    Delegates to ArgumentMatchers.matches(), it's only here so we expose all the ArgumentMatchers on a single place

    Delegates to ArgumentMatchers.matches(), it's only here so we expose all the ArgumentMatchers on a single place

    Definition Classes
    StringThatMatchers
  110. def mock[T <: AnyRef](implicit arg0: ClassTag[T], arg1: scala.reflect.api.JavaUniverse.TypeTag[T], defaultAnswer: DefaultAnswer): T

    Permalink
    Definition Classes
    IdiomaticMockito → MockCreator
  111. def mock[T <: AnyRef](defaultAnswer: DefaultAnswer)(implicit arg0: ClassTag[T], arg1: scala.reflect.api.JavaUniverse.TypeTag[T]): T

    Permalink
    Definition Classes
    IdiomaticMockito → MockCreator
  112. def mock[T <: AnyRef](mockSettings: MockSettings)(implicit arg0: ClassTag[T], arg1: scala.reflect.api.JavaUniverse.TypeTag[T]): T

    Permalink
    Definition Classes
    IdiomaticMockito → MockCreator
  113. def mock[T <: AnyRef](name: String)(implicit arg0: ClassTag[T], arg1: scala.reflect.api.JavaUniverse.TypeTag[T], defaultAnswer: DefaultAnswer): T

    Permalink
    Definition Classes
    IdiomaticMockito → MockCreator
  114. def mock[T <: AnyRef](defaultAnswer: Answer[_])(implicit arg0: ClassTag[T], arg1: scala.reflect.api.JavaUniverse.TypeTag[T]): T

    Permalink
    Definition Classes
    MockCreator
  115. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  116. def nestedSuites: IndexedSeq[Suite]

    Permalink
    Definition Classes
    Suite
  117. val never: Never

    Permalink
    Definition Classes
    IdiomaticMockito
  118. val nineTimesOn: Times

    Permalink
    Definition Classes
    IdiomaticMockito
  119. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  121. val on: On

    Permalink
    Definition Classes
    IdiomaticMockito
  122. val onceOn: Times

    Permalink
    Definition Classes
    IdiomaticMockito
  123. val onlyOn: OnlyOn

    Permalink
    Definition Classes
    IdiomaticMockito
  124. def pending: Assertion with PendingStatement

    Permalink
    Definition Classes
    Assertions
  125. def pendingUntilFixed(f: ⇒ Unit)(implicit pos: Position): Assertion with PendingStatement

    Permalink
    Definition Classes
    Assertions
  126. def refEq[T](value: T, excludeFields: String*): T

    Permalink

    Delegates to ArgumentMatchers.refEq(), it's only here so we expose all the ArgumentMatchers on a single place

    Delegates to ArgumentMatchers.refEq(), it's only here so we expose all the ArgumentMatchers on a single place

    Definition Classes
    EqMatchers
  127. def rerunner: Option[String]

    Permalink
    Definition Classes
    Suite
  128. val returned: Returned

    Permalink
    Definition Classes
    IdiomaticMockito
  129. def run(testName: Option[String], args: Args): Status

    Permalink
    Definition Classes
    Suite
  130. def runNestedSuites(args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    Suite
  131. def runTest(testName: String, args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    TestSuite → Suite
  132. def runTests(testName: Option[String], args: Args): Status

    Permalink
    Attributes
    protected
    Definition Classes
    Suite
  133. def same[T](value: T): T

    Permalink

    Delegates to ArgumentMatchers.same(), it's only here so we expose all the ArgumentMatchers on a single place

    Delegates to ArgumentMatchers.same(), it's only here so we expose all the ArgumentMatchers on a single place

    Definition Classes
    EqMatchers
  134. val sevenTimesOn: Times

    Permalink
    Definition Classes
    IdiomaticMockito
  135. def shortThat(matcher: ArgumentMatcher[Short]): Short

    Permalink

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Delegates the call to argThat but using the Scala "primitive", this provides avoids an unnecessary implicit conversion that would be necessary if we used the Java version

    Definition Classes
    ThatMatchers
  136. val sixTimesOn: Times

    Permalink
    Definition Classes
    IdiomaticMockito
  137. def spy[T](realObj: T): T

    Permalink
    Definition Classes
    IdiomaticMockito → MockCreator
  138. def spyLambda[T <: AnyRef](realObj: T)(implicit arg0: ClassTag[T]): T

    Permalink
    Definition Classes
    IdiomaticMockito → MockCreator
  139. def startsWith(prefix: String): String

    Permalink

    Delegates to ArgumentMatchers.startsWith(), it's only here so we expose all the ArgumentMatchers on a single place

    Delegates to ArgumentMatchers.startsWith(), it's only here so we expose all the ArgumentMatchers on a single place

    Definition Classes
    StringThatMatchers
  140. val styleName: String

    Permalink
    Definition Classes
    Suite
  141. final val succeed: Assertion

    Permalink
    Definition Classes
    Assertions
  142. def suiteId: String

    Permalink
    Definition Classes
    Suite
  143. def suiteName: String

    Permalink
    Definition Classes
    Suite
  144. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  145. def tags: Map[String, Set[String]]

    Permalink
    Definition Classes
    Suite
  146. val tenTimesOn: Times

    Permalink
    Definition Classes
    IdiomaticMockito
  147. def testDataFor(testName: String, theConfigMap: ConfigMap): TestData

    Permalink
    Definition Classes
    Suite
  148. def testNames: Set[String]

    Permalink
    Definition Classes
    Suite
  149. val theRealMethod: RealMethod

    Permalink
    Definition Classes
    IdiomaticMockito
  150. val threeTimesOn: Times

    Permalink
    Definition Classes
    IdiomaticMockito
  151. val thriceOn: Times

    Permalink
    Definition Classes
    IdiomaticMockito
  152. val thrown: Thrown

    Permalink
    Definition Classes
    IdiomaticMockito
  153. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  154. val twiceOn: Times

    Permalink
    Definition Classes
    IdiomaticMockito
  155. def typeCheckedConstraint[A, B](implicit equivalenceOfA: Equivalence[A], ev: <:<[B, A]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  156. implicit def unconstrainedEquality[A, B](implicit equalityOfA: Equality[A]): CanEqual[A, B]

    Permalink
    Definition Classes
    TripleEquals → TripleEqualsSupport
  157. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  160. def withClue[T](clue: Any)(fun: ⇒ T): T

    Permalink
    Definition Classes
    Assertions
  161. def withFixture(test: NoArgTest): Outcome

    Permalink
    Definition Classes
    MockitoSessionFixture → TestSuite
  162. def withSettings(implicit defaultAnswer: DefaultAnswer): MockSettings

    Permalink

    Delegates to Mockito.withSettings(), it's only here to expose the full Mockito API

    Delegates to Mockito.withSettings(), it's only here to expose the full Mockito API

    Definition Classes
    MockCreator

Deprecated Value Members

  1. final def execute: Unit

    Permalink
    Definition Classes
    Suite
    Annotations
    @deprecated
    Deprecated

    The parameterless execute method has been deprecated and will be removed in a future version of ScalaTest. Please invoke execute with empty parens instead: execute().

  2. def isNotNull[T]: T

    Permalink

    Delegates to ArgumentMatchers.isNotNull(), it's only here so we expose all the ArgumentMatchers on a single place, but marked as @deprecated as you shouldn't be testing for nulls on Scala

    Delegates to ArgumentMatchers.isNotNull(), it's only here so we expose all the ArgumentMatchers on a single place, but marked as @deprecated as you shouldn't be testing for nulls on Scala

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

    Permalink

    Delegates to ArgumentMatchers.isNull(), it's only here so we expose all the ArgumentMatchers on a single place, but marked as @deprecated as you shouldn't be testing for nulls on Scala

    Delegates to ArgumentMatchers.isNull(), it's only here so we expose all the ArgumentMatchers on a single place, but marked as @deprecated as you shouldn't be testing for nulls on Scala

    Definition Classes
    NullMatchers
    Annotations
    @deprecated
    Deprecated
  4. def trap[T](f: ⇒ T): Throwable

    Permalink
    Definition Classes
    Assertions
    Annotations
    @deprecated
    Deprecated

    The trap method is no longer needed for demos in the REPL, which now abreviates stack traces, and will be removed in a future version of ScalaTest

Inherited from ArgumentMatchersSugar

Inherited from FunctionMatchers

Inherited from NullMatchers

Inherited from StringThatMatchers

Inherited from ThatMatchers

Inherited from EqMatchers

Inherited from AnyMatchers

Inherited from IdiomaticMockito

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