Package it.tidalwave.util.mock
Class MockSimpleOwnerRoleFactoryProvider
- java.lang.Object
-
- it.tidalwave.util.mock.MockSimpleOwnerRoleFactoryProvider
-
- All Implemented Interfaces:
OwnerRoleFactoryProvider
public class MockSimpleOwnerRoleFactoryProvider extends java.lang.Object implements OwnerRoleFactoryProvider
A simple implementation ofOwnerRoleFactoryProvider
that might be enough for running tests. It just instantiates a Mockito mock for each requested role. Install it withAsDelegateProvider.Locator.set(new MockSimpleAsDelegateProvider());
in aBeforeClass
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.EmptyOwnerRoleFactory, OwnerRoleFactoryProvider.Inner, OwnerRoleFactoryProvider.SimpleOwnerRoleFactoryProvider
-
-
Constructor Summary
Constructors Constructor Description MockSimpleOwnerRoleFactoryProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OwnerRoleFactory
createRoleFactory(java.lang.Object owner)
-
-
-
Method Detail
-
createRoleFactory
@Nonnull public OwnerRoleFactory createRoleFactory(@Nonnull java.lang.Object owner)
- Specified by:
createRoleFactory
in interfaceOwnerRoleFactoryProvider
-
-