de.akquinet.jbosscc.needle.mock
Class MockitoProvider

java.lang.Object
  extended by de.akquinet.jbosscc.needle.mock.MockitoProvider
All Implemented Interfaces:
MockProvider

public class MockitoProvider
extends Object
implements MockProvider

A Mockito specific MockProvider implementation. For more details, see the Mockito documentation.


Constructor Summary
MockitoProvider()
           
 
Method Summary
<T> T
createMockComponent(Class<T> type)
          Creates a mock object of a given class or interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockitoProvider

public MockitoProvider()
Method Detail

createMockComponent

public <T> T createMockComponent(Class<T> type)
Creates a mock object of a given class or interface. Skipping creation, if the type is final or primitive.

Specified by:
createMockComponent in interface MockProvider
Parameters:
type - class or interface to mock
Returns:
the mock object or null, if the type is final or primitive.


Copyright © 2013 akquinet AG. All Rights Reserved.