Package it.tidalwave.util.mock
Class MockSimpleAsDelegateProvider
- java.lang.Object
-
- it.tidalwave.util.mock.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
EMPTY_REF
-
-
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
-
-