Skip navigation links
Mockito 2.28.0 API
A B C D E F G H I L M N O P R S T U V W 

R

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(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
Optional Answer to be used with Mockito.mock(Class, Answer).
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
Optional Answer to be used with Mockito.mock(Class, Answer)
RETURNS_SELF - Static variable in class org.mockito.Mockito
Optional Answer to be used with Mockito.mock(Class, Answer).
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
 
run(RunNotifier) - Method in class org.mockito.runners.ConsoleSpammingMockitoJUnitRunner
Deprecated.
 
run(RunNotifier) - Method in class org.mockito.runners.MockitoJUnitRunner
Deprecated.
run(RunNotifier) - Method in class org.mockito.runners.VerboseMockitoJUnitRunner
Deprecated.
 
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links
Mockito 2.28.0 API