JSF Test Framework: Mockito 1.1.2

org.jboss.test.faces.mockito.factory
Interface FactoryMock<T>

Type Parameters:
T - the type of mocked class
All Known Implementing Classes:
FactoryMockImpl

public interface FactoryMock<T>

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

Mocks can be created and then enhanced using FactoryMockingService.

Author:
Lukas Fryc

Method Summary
 Object createNewMockInstance()
          Creates the new mock instance.
 Class<T> getMockClass()
          Gets the mock class.
 String getMockClassName()
          Gets the mock class name.
 

Method Detail

getMockClass

Class<T> getMockClass()
Gets the mock class.

Returns:
the mock class

getMockClassName

String getMockClassName()
Gets the mock class name.

Returns:
the mock class name

createNewMockInstance

Object createNewMockInstance()
Creates the new mock instance.

Returns:
the object

JSF Test Framework: Mockito 1.1.2

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