|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ReturnValues | |
---|---|
org.mockito | Mockito is a mock library for java - see Mockito class for for usage. |
org.mockito.configuration | Mockito configuration utilities |
org.mockito.internal.configuration | Mockito configuration |
org.mockito.internal.stubbing.answers | Answers for stubbed calls |
Uses of ReturnValues in org.mockito |
---|
Methods in org.mockito with parameters of type ReturnValues | ||
---|---|---|
static
|
Mockito.mock(java.lang.Class<T> classToMock,
ReturnValues returnValues)
Deprecated. Please use mock(Foo.class, defaultAnswer); |
Uses of ReturnValues in org.mockito.configuration |
---|
Methods in org.mockito.configuration that return ReturnValues | |
---|---|
ReturnValues |
DefaultMockitoConfiguration.getReturnValues()
Deprecated. |
ReturnValues |
IMockitoConfiguration.getReturnValues()
Deprecated. Please use IMockitoConfiguration.getDefaultAnswer()
Steps: 1. Leave the implementation of getReturnValues() method empty - it's not going to be used anyway. 2. Implement getDefaultAnswer() instead. In rare cases your code might not compile with recent deprecation & changes. Very sorry for inconvenience but it had to be done in order to keep framework consistent.
See javadoc Allows configuring the default return values of unstubbed invocations
See javadoc for |
Uses of ReturnValues in org.mockito.internal.configuration |
---|
Methods in org.mockito.internal.configuration that return ReturnValues | |
---|---|
ReturnValues |
GlobalConfiguration.getReturnValues()
|
Uses of ReturnValues in org.mockito.internal.stubbing.answers |
---|
Constructors in org.mockito.internal.stubbing.answers with parameters of type ReturnValues | |
---|---|
AnswerReturnValuesAdapter(ReturnValues returnValues)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |