org.mockito
Interface ReturnValues

All Known Implementing Classes:
EmptyReturnValues, GloballyConfiguredReturnValues, MoreEmptyReturnValues, SmartNullReturnValues

public interface ReturnValues

Configures return values for an unstubbed invocation

Can be used in Mockito.mock(Class, ReturnValues)


Method Summary
 java.lang.Object valueFor(InvocationOnMock invocation)
          return value for an unstubbed invocation
 

Method Detail

valueFor

java.lang.Object valueFor(InvocationOnMock invocation)
return value for an unstubbed invocation

Parameters:
invocation - placeholder for mock and a method
Returns:
the return value