A B C D E F G H I L M N O P R S T U V W 
All Classes All Packages

R

reason() - Method in annotation type org.mockito.DoNotMock
The reason why the annotated type should not be mocked.
RedundantListenerException - Exception in org.mockito.exceptions.misusing
Reported when instance of MockitoListener is being added to Mockito (see MockitoFramework) and there is already a listener with this implementation type registered.
RedundantListenerException(String) - Constructor for exception org.mockito.exceptions.misusing.RedundantListenerException
 
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
When you add listener using MockitoFramework.addListener(MockitoListener) make sure to remove it.
reportInvocation(MethodInvocationReport) - Method in interface org.mockito.listeners.InvocationListener
Called after the invocation of the listener's mock if it returned normally.
reset() - Method in interface org.mockito.MockedStatic
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.
resolve(Object) - Method in interface org.mockito.plugins.MockResolver
Returns the provided instance or the unwrapped mock that the provided instance represents.
RETURNS_DEEP_STUBS - org.mockito.Answers
An answer that returns deep stubs (not mocks).
RETURNS_DEEP_STUBS - Static variable in class org.mockito.Mockito
Optional Answer to be used with Mockito.mock(Class, Answer).
RETURNS_DEFAULTS - org.mockito.Answers
The default configured answer of every mock.
RETURNS_DEFAULTS - Static variable in class org.mockito.Mockito
The default Answer of every mock if the mock was not stubbed.
RETURNS_MOCKS - org.mockito.Answers
An answer that returns mocks (not stubs).
RETURNS_MOCKS - Static variable in class org.mockito.Mockito
Optional Answer to be used with Mockito.mock(Class, Answer)
RETURNS_SELF - org.mockito.Answers
An answer that tries to return itself.
RETURNS_SELF - Static variable in class org.mockito.Mockito
Optional Answer to be used with Mockito.mock(Class, Answer).
RETURNS_SMART_NULLS - org.mockito.Answers
An answer that returns smart-nulls.
RETURNS_SMART_NULLS - Static variable in class org.mockito.Mockito
Optional Answer to be used with Mockito.mock(Class, Answer).
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.junit.MockitoJUnitRunner
 
A B C D E F G H I L M N O P R S T U V W 
All Classes All Packages