Package it.tidalwave.role.ui.spi
Class MockSimpleAsDelegateProvider
- java.lang.Object
-
- it.tidalwave.role.ui.spi.MockSimpleAsDelegateProvider
-
- All Implemented Interfaces:
AsDelegateProvider
public class MockSimpleAsDelegateProvider extends java.lang.Object implements AsDelegateProvider
A simple implementation ofAsDelegateProvider
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.util.spi.AsDelegateProvider
AsDelegateProvider.EmptyAsDelegateProvider, AsDelegateProvider.Locator
-
-
Field Summary
-
Fields inherited from interface it.tidalwave.util.spi.AsDelegateProvider
_AsDelegateProvider_
-
-
Constructor Summary
Constructors Constructor Description MockSimpleAsDelegateProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsDelegate
createAsDelegate(java.lang.Object datum)
-
-
-
Method Detail
-
createAsDelegate
@Nonnull public AsDelegate createAsDelegate(@Nonnull java.lang.Object datum)
- Specified by:
createAsDelegate
in interfaceAsDelegateProvider
-
-