JSF Test Framework: Mockito 1.1.2

org.jboss.test.faces.mockito.factory
Class FactoryMockImpl<T>

java.lang.Object
  extended by org.jboss.test.faces.mockito.factory.FactoryMockImpl<T>
Type Parameters:
T - the generic type
All Implemented Interfaces:
FactoryMock<T>

public class FactoryMockImpl<T>
extends Object
implements FactoryMock<T>

The implementation of factory mocks - mocks which needs to be created by constructing class instance by class name (e.g. {@see Class#forName(String)).


Method Summary
 T createNewMockInstance()
          Creates the new mock instance.
 Class<T> getMockClass()
          Gets the mock class.
 String getMockClassName()
          Gets the mock class name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMockClass

public Class<T> getMockClass()
Description copied from interface: FactoryMock
Gets the mock class.

Specified by:
getMockClass in interface FactoryMock<T>
Returns:
the mock class

getMockClassName

public String getMockClassName()
Description copied from interface: FactoryMock
Gets the mock class name.

Specified by:
getMockClassName in interface FactoryMock<T>
Returns:
the mock class name

createNewMockInstance

public T createNewMockInstance()
Description copied from interface: FactoryMock
Creates the new mock instance.

Specified by:
createNewMockInstance in interface FactoryMock<T>
Returns:
the object

JSF Test Framework: Mockito 1.1.2

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