JSF Test Framework: Mockito 1.1.2

org.jboss.test.faces.mockito.factory
Class FactoryMockingService

java.lang.Object
  extended by org.jboss.test.faces.mockito.factory.FactoryMockingService

public class FactoryMockingService
extends Object

The service class for creating new factory mocks and their enhancing by mocking ability.


Constructor Summary
FactoryMockingService()
           
 
Method Summary
<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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryMockingService

public FactoryMockingService()
Method Detail

getInstance

public static FactoryMockingService getInstance()
Gets the single instance of FactoryMockingService.

Returns:
single instance of FactoryMockingService

createFactoryMock

public <T> FactoryMock<T> createFactoryMock(Class<T> type)
Creates the factory mock.

Type Parameters:
T - the generic type
Parameters:
type - the type
Returns:
the factory mock

enhance

public <T> void enhance(FactoryMock<T> factoryMock,
                        T mockToEnhance)
Enhance the factored mock by mocking ability.

Type Parameters:
T - the generic type
Parameters:
factoryMock - the factory mock
mockToEnhance - the mock to enhance

JSF Test Framework: Mockito 1.1.2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.