- refEq(T, String...) - Static method in class org.mockito.ArgumentMatchers
-
Object argument that is reflection-equal to the given value with support for excluding
selected fields from a class.
- removeListener(MockitoListener) - Method in interface org.mockito.MockitoFramework
-
- reportInvocation(MethodInvocationReport) - Method in interface org.mockito.listeners.InvocationListener
-
Called after the invocation of the listener's mock if it returned normally.
- reset(T...) - Static method in class org.mockito.Mockito
-
Smart Mockito users hardly use this feature because they know it could be a sign of poor tests.
- resetMock(Object, MockHandler, MockCreationSettings) - Method in interface org.mockito.plugins.MockMaker
-
Replaces the existing handler on mock
with newHandler
.
- RETURNS_DEEP_STUBS - Static variable in class org.mockito.Mockito
-
- RETURNS_DEFAULTS - Static variable in class org.mockito.Mockito
-
The default Answer
of every mock if the mock was not stubbed.
- RETURNS_MOCKS - Static variable in class org.mockito.Mockito
-
- RETURNS_SELF - Static variable in class org.mockito.Mockito
-
- RETURNS_SMART_NULLS - Static variable in class org.mockito.Mockito
-
- returnsArgAt(int) - Static method in class org.mockito.AdditionalAnswers
-
Returns the parameter of an invocation at the given position.
- returnsElementsOf(Collection<?>) - Static method in class org.mockito.AdditionalAnswers
-
Returns elements of the collection.
- returnsFirstArg() - Static method in class org.mockito.AdditionalAnswers
-
Returns the first parameter of an invocation.
- returnsLastArg() - Static method in class org.mockito.AdditionalAnswers
-
Returns the last parameter of an invocation.
- returnsSecondArg() - Static method in class org.mockito.AdditionalAnswers
-
Returns the second parameter of an invocation.
- rule() - Static method in class org.mockito.junit.MockitoJUnit
-
Creates rule instance that initiates @Mocks
For more details and examples see
MockitoRule
.
- run(RunNotifier) - Method in class org.mockito.runners.ConsoleSpammingMockitoJUnitRunner
-
Deprecated.
- run(RunNotifier) - Method in class org.mockito.runners.MockitoJUnitRunner
-
- run(RunNotifier) - Method in class org.mockito.runners.VerboseMockitoJUnitRunner
-
Deprecated.