org.mockito.internal.configuration
Class DefaultReturnValues

java.lang.Object
  extended by org.mockito.internal.configuration.DefaultReturnValues
All Implemented Interfaces:
ReturnValues

public class DefaultReturnValues
extends java.lang.Object
implements ReturnValues

Used by default by every Mockito mock.


Constructor Summary
DefaultReturnValues()
           
 
Method Summary
 java.lang.Object valueFor(InvocationOnMock invocation)
          returns 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

DefaultReturnValues

public DefaultReturnValues()
Method Detail

valueFor

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

See examples in javadoc for ConfigurationSupport

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