org.scalamock.scalatest

MockFactory

trait MockFactory extends AbstractMockFactory with Mock

Trait that can be mixed into a ScalaTest suite to provide mocking support.

class CoffeeMachineTest extends FlatSpec with ShouldMatchers with MockFactory {

	"CoffeeMachine" should "not turn on the heater when the water container is empty" in {
	    val waterContainerMock = mock[WaterContainer]
	    (waterContainerMock.isEmpty _).expects().returning(true)
	    // ...
	}

	it should "not turn on the heater when the water container is overfull" in {
	    val waterContainerMock = mock[WaterContainer]
	    // ...
	}
}

Sharing mocks across test cases

Sometimes multiple test cases need to work with the same mocks (and more generally - the same fixtures: files, sockets, database connections, etc.). There are many techniques to avoid duplicating the fixture code across test cases in ScalaTest, but ScalaMock recommends and officially supports these two:

Isolated test cases

If you mix OneInstancePerTest trait into a Suite, each test case will run in its own instance of the suite class and therefore each test will get a fresh copy of the instance variables.

This way in the suite scope you can declare instance variables (e.g. mocks) that will be used by multiple test cases and perform common test case setup (e.g. set up some mock expectations). Because each test cases has fresh instance variables different test cases do not interfere with each other.

// Please note that this test suite mixes in OneInstancePerTest
class CoffeeMachineTest extends FlatSpec with ShouldMatchers with OneInstancePerTest with MockFactory {
	// shared objects
	val waterContainerMock = mock[WaterContainer]
	val heaterMock = mock[Heater]
	val coffeeMachine = new CoffeeMachine(waterContainerMock, heaterMock)

	// you can set common expectations in suite scope
	(waterContainerMock.isOverfull _).expects().returning(true)

	// test setup
	coffeeMachine.powerOn()

	"CoffeeMachine" should "not turn on the heater when the water container is empty" in {
	    coffeeMachine.isOn shouldBe true
	    // ...
	    coffeeMachine.powerOff()
	}

	it should "not turn on the heater when the water container is overfull" in {
	    // each test case uses separate, fresh Suite so the coffee machine is turned on
	    coffeeMachine.isOn shouldBe true
	    // ...
	}
}
Fixture contexts

You can also run each test case in separate fixture context. Fixture contexts can be extended and combined and since each test case uses different instance of fixture context test cases do not interfere with each other while they can have shared mocks and expectations.

class CoffeeMachineTest extends FlatSpec with ShouldMatchers with MockFactory {
	trait Test { // fixture context
	    // shared objects
	    val waterContainerMock = mock[WaterContainer]
	    val heaterMock = mock[Heater]
	    val coffeeMachine = new CoffeeMachine(waterContainerMock, heaterMock)

	    // test setup
	    coffeeMachine.powerOn()
	}

	"CoffeeMachine" should "not turn on the heater when the water container is empty" in new Test {
	    coffeeMachine.isOn shouldBe true
	    (waterContainerMock.isOverfull _).expects().returning(true)
	    // ...
	}

	// you can extend and combine fixture-contexts
	trait OverfullWaterContainerTest extends Test {
	    // you can set expectations and use mocks in fixture-context
	    (waterContainerMock.isEmpty _).expects().returning(true)

	    // and define helper functions
	    def complexLogic() {
	      coffeeMachine.powerOff()
	      // ...
	    }
	}

	it should "not turn on the heater when the water container is overfull" in new OverfullWaterContainerTest {
	    // ...
	    complexLogic()
	}
}

See org.scalamock for overview documentation.

Self Type
MockFactory with Suite
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MockFactory
  2. AbstractMockFactory
  3. MockFactoryBase
  4. MockContext
  5. AbstractMockFactoryBase
  6. Matchers
  7. MockFunctions
  8. Mock
  9. SuiteMixin
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class EpsilonMatcher extends AnyRef

    Attributes
    protected
    Definition Classes
    Matchers
  2. type ExpectationException = TestFailedException

    Definition Classes
    AbstractMockFactory → MockContext
  3. case class FunctionName(name: Symbol) extends Product with Serializable

    Attributes
    protected
    Definition Classes
    MockFunctions

Abstract Value Members

  1. abstract def expectedTestCount(filter: Filter): Int

    Definition Classes
    SuiteMixin
  2. abstract def nestedSuites: IndexedSeq[Suite]

    Definition Classes
    SuiteMixin
  3. abstract def rerunner: Option[String]

    Definition Classes
    SuiteMixin
  4. abstract def run(testName: Option[String], args: Args): Status

    Definition Classes
    SuiteMixin
  5. abstract def runNestedSuites(args: Args): Status

    Attributes
    protected
    Definition Classes
    SuiteMixin
  6. abstract def runTest(testName: String, args: Args): Status

    Attributes
    protected
    Definition Classes
    SuiteMixin
  7. abstract def runTests(testName: Option[String], args: Args): Status

    Attributes
    protected
    Definition Classes
    SuiteMixin
  8. abstract val styleName: String

    Definition Classes
    SuiteMixin
  9. abstract def suiteId: String

    Definition Classes
    SuiteMixin
  10. abstract def suiteName: String

    Definition Classes
    SuiteMixin
  11. abstract def tags: Map[String, Set[String]]

    Definition Classes
    SuiteMixin
  12. abstract def testDataFor(testName: String, theConfigMap: ConfigMap): TestData

    Definition Classes
    SuiteMixin
  13. abstract def testNames: Set[String]

    Definition Classes
    SuiteMixin

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def *: MatchAny

    Attributes
    protected
    Definition Classes
    Matchers
  5. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  7. implicit val _factory: MockFactoryBase

    Definition Classes
    MockFactoryBase
  8. def argThat[T](predicate: (T) ⇒ Boolean): ArgThat[T]

    Attributes
    protected
    Definition Classes
    Matchers
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. var autoVerify: Boolean

    Attributes
    protected
    Definition Classes
    AbstractMockFactory
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. implicit def doubleToEpsilon(d: Double): (MockFactory.this)#EpsilonMatcher

    Attributes
    protected
    Definition Classes
    Matchers
  13. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. implicit def functionName(name: String): (MockFactory.this)#FunctionName

    Attributes
    protected
    Definition Classes
    MockFunctions
  17. implicit def functionName(name: Symbol): (MockFactory.this)#FunctionName

    Attributes
    protected
    Definition Classes
    MockFunctions
  18. def generateMockDefaultName(prefix: String): Symbol

    Generates unique names for mocks, stubs, and mock functions

    Generates unique names for mocks, stubs, and mock functions

    Definition Classes
    MockContext
  19. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  21. def inAnyOrder[T](what: ⇒ T): T

    Attributes
    protected
    Definition Classes
    MockFactoryBaseAbstractMockFactoryBase
  22. def inSequence[T](what: ⇒ T): T

    Attributes
    protected
    Definition Classes
    MockFactoryBaseAbstractMockFactoryBase
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. implicit def matcherBaseToMockParameter[T](m: MatcherBase): MockParameter[T]

    Attributes
    protected
    Definition Classes
    Matchers
  25. def mock[T](mockName: String)(implicit mockContext: MockContext): T

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  26. def mock[T](implicit mockContext: MockContext): T

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  27. def mockFunction[T1, T2, T3, T4, T5, T6, T7, T8, T9, R](implicit arg0: Defaultable[R]): MockFunction9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  28. def mockFunction[T1, T2, T3, T4, T5, T6, T7, T8, R](implicit arg0: Defaultable[R]): MockFunction8[T1, T2, T3, T4, T5, T6, T7, T8, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  29. def mockFunction[T1, T2, T3, T4, T5, T6, T7, R](implicit arg0: Defaultable[R]): MockFunction7[T1, T2, T3, T4, T5, T6, T7, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  30. def mockFunction[T1, T2, T3, T4, T5, T6, R](implicit arg0: Defaultable[R]): MockFunction6[T1, T2, T3, T4, T5, T6, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  31. def mockFunction[T1, T2, T3, T4, T5, R](implicit arg0: Defaultable[R]): MockFunction5[T1, T2, T3, T4, T5, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  32. def mockFunction[T1, T2, T3, T4, R](implicit arg0: Defaultable[R]): MockFunction4[T1, T2, T3, T4, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  33. def mockFunction[T1, T2, T3, R](implicit arg0: Defaultable[R]): MockFunction3[T1, T2, T3, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  34. def mockFunction[T1, T2, R](implicit arg0: Defaultable[R]): MockFunction2[T1, T2, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  35. def mockFunction[T1, R](implicit arg0: Defaultable[R]): MockFunction1[T1, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  36. def mockFunction[R](implicit arg0: Defaultable[R]): MockFunction0[R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  37. def mockFunction[T1, T2, T3, T4, T5, T6, T7, T8, T9, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): MockFunction9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  38. def mockFunction[T1, T2, T3, T4, T5, T6, T7, T8, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): MockFunction8[T1, T2, T3, T4, T5, T6, T7, T8, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  39. def mockFunction[T1, T2, T3, T4, T5, T6, T7, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): MockFunction7[T1, T2, T3, T4, T5, T6, T7, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  40. def mockFunction[T1, T2, T3, T4, T5, T6, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): MockFunction6[T1, T2, T3, T4, T5, T6, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  41. def mockFunction[T1, T2, T3, T4, T5, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): MockFunction5[T1, T2, T3, T4, T5, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  42. def mockFunction[T1, T2, T3, T4, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): MockFunction4[T1, T2, T3, T4, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  43. def mockFunction[T1, T2, T3, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): MockFunction3[T1, T2, T3, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  44. def mockFunction[T1, T2, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): MockFunction2[T1, T2, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  45. def mockFunction[T1, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): MockFunction1[T1, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  46. def mockFunction[R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): MockFunction0[R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  47. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  48. def newExpectationException(message: String, methodName: Option[Symbol]): TestFailedException

    Attributes
    protected
    Definition Classes
    AbstractMockFactory → MockContext
  49. final def notify(): Unit

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

    Definition Classes
    AnyRef
  51. def stub[T](mockName: String)(implicit mockContext: MockContext): T

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  52. def stub[T](implicit mockContext: MockContext): T

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  53. def stubFunction[T1, T2, T3, T4, T5, T6, T7, T8, T9, R](implicit arg0: Defaultable[R]): StubFunction9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  54. def stubFunction[T1, T2, T3, T4, T5, T6, T7, T8, R](implicit arg0: Defaultable[R]): StubFunction8[T1, T2, T3, T4, T5, T6, T7, T8, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  55. def stubFunction[T1, T2, T3, T4, T5, T6, T7, R](implicit arg0: Defaultable[R]): StubFunction7[T1, T2, T3, T4, T5, T6, T7, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  56. def stubFunction[T1, T2, T3, T4, T5, T6, R](implicit arg0: Defaultable[R]): StubFunction6[T1, T2, T3, T4, T5, T6, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  57. def stubFunction[T1, T2, T3, T4, T5, R](implicit arg0: Defaultable[R]): StubFunction5[T1, T2, T3, T4, T5, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  58. def stubFunction[T1, T2, T3, T4, R](implicit arg0: Defaultable[R]): StubFunction4[T1, T2, T3, T4, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  59. def stubFunction[T1, T2, T3, R](implicit arg0: Defaultable[R]): StubFunction3[T1, T2, T3, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  60. def stubFunction[T1, T2, R](implicit arg0: Defaultable[R]): StubFunction2[T1, T2, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  61. def stubFunction[T1, R](implicit arg0: Defaultable[R]): StubFunction1[T1, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  62. def stubFunction[R](implicit arg0: Defaultable[R]): StubFunction0[R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  63. def stubFunction[T1, T2, T3, T4, T5, T6, T7, T8, T9, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): StubFunction9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  64. def stubFunction[T1, T2, T3, T4, T5, T6, T7, T8, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): StubFunction8[T1, T2, T3, T4, T5, T6, T7, T8, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  65. def stubFunction[T1, T2, T3, T4, T5, T6, T7, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): StubFunction7[T1, T2, T3, T4, T5, T6, T7, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  66. def stubFunction[T1, T2, T3, T4, T5, T6, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): StubFunction6[T1, T2, T3, T4, T5, T6, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  67. def stubFunction[T1, T2, T3, T4, T5, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): StubFunction5[T1, T2, T3, T4, T5, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  68. def stubFunction[T1, T2, T3, T4, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): StubFunction4[T1, T2, T3, T4, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  69. def stubFunction[T1, T2, T3, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): StubFunction3[T1, T2, T3, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  70. def stubFunction[T1, T2, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): StubFunction2[T1, T2, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  71. def stubFunction[T1, R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): StubFunction1[T1, R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  72. def stubFunction[R](name: (MockFactory.this)#FunctionName)(implicit arg0: Defaultable[R]): StubFunction0[R]

    Attributes
    protected
    Definition Classes
    MockFunctions
  73. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  74. implicit def toMockFunction0[R](f: () ⇒ R)(implicit arg0: Defaultable[R]): MockFunction0[R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  75. implicit def toMockFunction1[T1, R](f: (T1) ⇒ R)(implicit arg0: Defaultable[R]): MockFunction1[T1, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  76. implicit def toMockFunction2[T1, T2, R](f: (T1, T2) ⇒ R)(implicit arg0: Defaultable[R]): MockFunction2[T1, T2, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  77. implicit def toMockFunction3[T1, T2, T3, R](f: (T1, T2, T3) ⇒ R)(implicit arg0: Defaultable[R]): MockFunction3[T1, T2, T3, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  78. implicit def toMockFunction4[T1, T2, T3, T4, R](f: (T1, T2, T3, T4) ⇒ R)(implicit arg0: Defaultable[R]): MockFunction4[T1, T2, T3, T4, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  79. implicit def toMockFunction5[T1, T2, T3, T4, T5, R](f: (T1, T2, T3, T4, T5) ⇒ R)(implicit arg0: Defaultable[R]): MockFunction5[T1, T2, T3, T4, T5, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  80. implicit def toMockFunction6[T1, T2, T3, T4, T5, T6, R](f: (T1, T2, T3, T4, T5, T6) ⇒ R)(implicit arg0: Defaultable[R]): MockFunction6[T1, T2, T3, T4, T5, T6, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  81. implicit def toMockFunction7[T1, T2, T3, T4, T5, T6, T7, R](f: (T1, T2, T3, T4, T5, T6, T7) ⇒ R)(implicit arg0: Defaultable[R]): MockFunction7[T1, T2, T3, T4, T5, T6, T7, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  82. implicit def toMockFunction8[T1, T2, T3, T4, T5, T6, T7, T8, R](f: (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ R)(implicit arg0: Defaultable[R]): MockFunction8[T1, T2, T3, T4, T5, T6, T7, T8, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  83. implicit def toMockFunction9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ R)(implicit arg0: Defaultable[R]): MockFunction9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  84. implicit def toMockParameter[T](v: T): MockParameter[T]

    Attributes
    protected
    Definition Classes
    Matchers
  85. def toString(): String

    Definition Classes
    AnyRef → Any
  86. implicit def toStubFunction0[R](f: () ⇒ R)(implicit arg0: Defaultable[R]): StubFunction0[R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  87. implicit def toStubFunction1[T1, R](f: (T1) ⇒ R)(implicit arg0: Defaultable[R]): StubFunction1[T1, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  88. implicit def toStubFunction2[T1, T2, R](f: (T1, T2) ⇒ R)(implicit arg0: Defaultable[R]): StubFunction2[T1, T2, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  89. implicit def toStubFunction3[T1, T2, T3, R](f: (T1, T2, T3) ⇒ R)(implicit arg0: Defaultable[R]): StubFunction3[T1, T2, T3, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  90. implicit def toStubFunction4[T1, T2, T3, T4, R](f: (T1, T2, T3, T4) ⇒ R)(implicit arg0: Defaultable[R]): StubFunction4[T1, T2, T3, T4, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  91. implicit def toStubFunction5[T1, T2, T3, T4, T5, R](f: (T1, T2, T3, T4, T5) ⇒ R)(implicit arg0: Defaultable[R]): StubFunction5[T1, T2, T3, T4, T5, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  92. implicit def toStubFunction6[T1, T2, T3, T4, T5, T6, R](f: (T1, T2, T3, T4, T5, T6) ⇒ R)(implicit arg0: Defaultable[R]): StubFunction6[T1, T2, T3, T4, T5, T6, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  93. implicit def toStubFunction7[T1, T2, T3, T4, T5, T6, T7, R](f: (T1, T2, T3, T4, T5, T6, T7) ⇒ R)(implicit arg0: Defaultable[R]): StubFunction7[T1, T2, T3, T4, T5, T6, T7, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  94. implicit def toStubFunction8[T1, T2, T3, T4, T5, T6, T7, T8, R](f: (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ R)(implicit arg0: Defaultable[R]): StubFunction8[T1, T2, T3, T4, T5, T6, T7, T8, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  95. implicit def toStubFunction9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R](f: (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ R)(implicit arg0: Defaultable[R]): StubFunction9[T1, T2, T3, T4, T5, T6, T7, T8, T9, R]

    Definition Classes
    Mock
    Annotations
    @macroImpl( ... )
  96. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  99. def where[T1, T2, T3, T4, T5, T6, T7, T8, T9](matcher: (T1, T2, T3, T4, T5, T6, T7, T8, T9) ⇒ Boolean): FunctionAdapter9[T1, T2, T3, T4, T5, T6, T7, T8, T9, Boolean]

    Attributes
    protected
    Definition Classes
    Matchers
  100. def where[T1, T2, T3, T4, T5, T6, T7, T8](matcher: (T1, T2, T3, T4, T5, T6, T7, T8) ⇒ Boolean): FunctionAdapter8[T1, T2, T3, T4, T5, T6, T7, T8, Boolean]

    Attributes
    protected
    Definition Classes
    Matchers
  101. def where[T1, T2, T3, T4, T5, T6, T7](matcher: (T1, T2, T3, T4, T5, T6, T7) ⇒ Boolean): FunctionAdapter7[T1, T2, T3, T4, T5, T6, T7, Boolean]

    Attributes
    protected
    Definition Classes
    Matchers
  102. def where[T1, T2, T3, T4, T5, T6](matcher: (T1, T2, T3, T4, T5, T6) ⇒ Boolean): FunctionAdapter6[T1, T2, T3, T4, T5, T6, Boolean]

    Attributes
    protected
    Definition Classes
    Matchers
  103. def where[T1, T2, T3, T4, T5](matcher: (T1, T2, T3, T4, T5) ⇒ Boolean): FunctionAdapter5[T1, T2, T3, T4, T5, Boolean]

    Attributes
    protected
    Definition Classes
    Matchers
  104. def where[T1, T2, T3, T4](matcher: (T1, T2, T3, T4) ⇒ Boolean): FunctionAdapter4[T1, T2, T3, T4, Boolean]

    Attributes
    protected
    Definition Classes
    Matchers
  105. def where[T1, T2, T3](matcher: (T1, T2, T3) ⇒ Boolean): FunctionAdapter3[T1, T2, T3, Boolean]

    Attributes
    protected
    Definition Classes
    Matchers
  106. def where[T1, T2](matcher: (T1, T2) ⇒ Boolean): FunctionAdapter2[T1, T2, Boolean]

    Attributes
    protected
    Definition Classes
    Matchers
  107. def where[T1](matcher: (T1) ⇒ Boolean): FunctionAdapter1[T1, Boolean]

    Attributes
    protected
    Definition Classes
    Matchers
  108. def withExpectations[T](what: ⇒ T): T

    Attributes
    protected
    Definition Classes
    MockFactoryBaseAbstractMockFactoryBase
  109. def withFixture(test: (MockFactory.this)#NoArgTest): Outcome

    Definition Classes
    AbstractMockFactory → SuiteMixin

Inherited from AbstractMockFactory

Inherited from MockFactoryBase

Inherited from MockContext

Inherited from AbstractMockFactoryBase

Inherited from Matchers

Inherited from MockFunctions

Inherited from Mock

Inherited from SuiteMixin

Inherited from AnyRef

Inherited from Any

Ungrouped