public class FactoryMockingService extends Object
| Constructor and Description |
|---|
FactoryMockingService() |
| Modifier and Type | Method and Description |
|---|---|
<T> FactoryMock<T> |
createFactoryMock(Class<T> type)
Creates the factory mock.
|
<T> void |
enhance(FactoryMock<T> factoryMock,
T mockToEnhance)
Enhance the factored mock by mocking ability.
|
static FactoryMockingService |
getInstance()
Gets the single instance of FactoryMockingService.
|
public static FactoryMockingService getInstance()
public <T> FactoryMock<T> createFactoryMock(Class<T> type)
T - the generic typetype - the typepublic <T> void enhance(FactoryMock<T> factoryMock, T mockToEnhance)
T - the generic typefactoryMock - the factory mockmockToEnhance - the mock to enhanceCopyright © 2013 JBoss by Red Hat. All Rights Reserved.