org.mockito.internal.returnvalues
Class MoreEmptyReturnValues

java.lang.Object
  extended by org.mockito.internal.returnvalues.MoreEmptyReturnValues
All Implemented Interfaces:
ReturnValues

public class MoreEmptyReturnValues
extends java.lang.Object
implements ReturnValues

It's likely this implementation will be used by default by every Mockito 2.0 mock.

Currently used only by Mockito.RETURNS_SMART_NULLS

Current version of Mockito mocks by deafult use EmptyReturnValues


Constructor Summary
MoreEmptyReturnValues()
           
 
Method Summary
 java.lang.Object valueFor(InvocationOnMock invocation)
          return value for an unstubbed invocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoreEmptyReturnValues

public MoreEmptyReturnValues()
Method Detail

valueFor

public java.lang.Object valueFor(InvocationOnMock invocation)
Description copied from interface: ReturnValues
return value for an unstubbed invocation

Specified by:
valueFor in interface ReturnValues
Parameters:
invocation - placeholder for mock and a method
Returns:
the return value