Inherited from MockFactoryBase
Inherited from context.MockContext
Inherited from AbstractMockFactoryBase
Inherited from Matchers
Inherited from MockFunctions
Inherited from Mock
Inherited from AroundEach
Inherited from FragmentsFactory
Inherited from AnyRef
Inherited from Any
A trait that can be mixed into a Specs2 specification to provide mocking support.
To use ScalaMock in Specs2 tests you can either:
Specification
with org.scalamock.specs2.IsolatedMockFactory to get isolated test cases orIsolated tests cases are clean and simple, recommended when all test cases have the same or very similar fixtures