Package it.tidalwave.util.mock
Class MockSimpleOwnerRoleFactoryProvider
java.lang.Object
it.tidalwave.util.mock.MockSimpleOwnerRoleFactoryProvider
- All Implemented Interfaces:
OwnerRoleFactoryProvider
A simple implementation of
OwnerRoleFactoryProvider
that might be enough for running tests. It just instantiates
a Mockito mock for each requested role.
Install it with AsDelegateProvider.Locator.set(new MockSimpleAsDelegateProvider());
in a BeforeClass
method.- Since:
- 3.2-ALPHA-8
- Author:
- Fabrizio Giudici
- Status: experimental API
-
Nested Class Summary
Nested classes/interfaces inherited from interface it.tidalwave.role.spi.OwnerRoleFactoryProvider
OwnerRoleFactoryProvider.Inner
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MockSimpleOwnerRoleFactoryProvider
public MockSimpleOwnerRoleFactoryProvider()
-
-
Method Details
-
createRoleFactory
- Specified by:
createRoleFactory
in interfaceOwnerRoleFactoryProvider
-