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.
MockFactory does not work well in with thread pools and futures. Fixture-contexts support is also broken.
To use ScalaMock in Specs2 tests you can either:
Specification
with org.scalamock.specs2.IsolatedMockFactory to get isolated test cases or(Since version 3.2) MockFactory is buggy. Please use IsolatedMockFactory or MockContext instead