Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
V
- 22. Verification with timeout (Since 1.8.5) - Search tag in class org.mockito.Mockito
- Section
- 25. Verification ignoring stubs (Since 1.9.0) - Search tag in class org.mockito.Mockito
- Section
- 4. Verifying exact number of invocations / at least x / never - Search tag in class org.mockito.Mockito
- Section
- 55. Verification with assertions (Since 5.3.0) - Search tag in class org.mockito.Mockito
- Section
- 6. Verification in order - Search tag in class org.mockito.Mockito
- Section
- ValidableAnswer - Interface in org.mockito.stubbing
-
Allow to validate this answer is correct for the given invocation.
- validate() - Static method in class org.mockito.internal.configuration.GlobalConfiguration
- validateConstructorUse(boolean, SerializableMode) - Method in class org.mockito.internal.util.MockCreationValidator
- validateDelegatedInstance(Class<?>, Object) - Method in class org.mockito.internal.util.MockCreationValidator
- validateExtraInterfaces(Class<?>, Collection<Class<?>>) - Method in class org.mockito.internal.util.MockCreationValidator
- validateFor(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.AbstractThrowsException
- validateFor(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.AnswersWithDelay
- validateFor(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.CallsRealMethods
- validateFor(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.DoesNothing
- validateFor(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.Returns
- validateFor(InvocationOnMock) - Method in class org.mockito.internal.stubbing.answers.ReturnsArgumentAt
- validateFor(InvocationOnMock) - Method in interface org.mockito.stubbing.ValidableAnswer
-
Validation of the answer at stub time for the given invocation.
- validateMockedType(Class<?>, Object) - Method in class org.mockito.internal.util.MockCreationValidator
- validateMockitoUsage() - Method in class org.mockito.internal.MockitoCore
- validateMockitoUsage() - Static method in class org.mockito.Mockito
-
First of all, in case of any trouble, I encourage you to read the Mockito FAQ: https://github.com/mockito/mockito/wiki/FAQ
- validateReturnValueFor(InvocationOnMock, Object) - Static method in class org.mockito.internal.stubbing.answers.DefaultAnswerValidator
- validateState() - Method in interface org.mockito.internal.progress.ArgumentMatcherStorage
- validateState() - Method in class org.mockito.internal.progress.ArgumentMatcherStorageImpl
- validateState() - Method in interface org.mockito.internal.progress.MockingProgress
- validateState() - Method in class org.mockito.internal.progress.MockingProgressImpl
- validateType(Class<?>, String) - Method in class org.mockito.internal.util.MockCreationValidator
- validateUnusedStubs(Class<?>, RunNotifier) - Method in class org.mockito.internal.junit.UnnecessaryStubbingsReporter
- valueOf(String) - Static method in enum org.mockito.Answers
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.mockito.internal.invocation.RealMethod.IsIllegal
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.mockito.internal.util.concurrent.DetachedThreadLocal.Cleaner
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.mockito.internal.util.concurrent.WeakConcurrentSet.Cleaner
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.mockito.mock.MockType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.mockito.mock.SerializableMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.mockito.Mock.Strictness
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.mockito.quality.Strictness
-
Returns the enum constant of this type with the specified name.
- ValuePrinter - Class in org.mockito.internal.matchers.text
-
Prints a Java object value in a way humans can read it neatly.
- values() - Static method in enum org.mockito.Answers
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.mockito.internal.invocation.RealMethod.IsIllegal
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.mockito.internal.util.concurrent.DetachedThreadLocal.Cleaner
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.mockito.internal.util.concurrent.WeakConcurrentSet.Cleaner
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.mockito.mock.MockType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.mockito.mock.SerializableMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.mockito.Mock.Strictness
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.mockito.quality.Strictness
-
Returns an array containing the constants of this enum type, in the order they are declared.
- verboseLogging() - Method in class org.mockito.internal.creation.MockSettingsImpl
- verboseLogging() - Method in interface org.mockito.MockSettings
-
Enables real-time logging of method invocations on this mock.
- verboseMatchers(Integer...) - Static method in class org.mockito.internal.reporting.PrintSettings
- VerboseMockInvocationLogger - Class in org.mockito.internal.debugging
-
Logs all invocations to standard output.
- VerboseMockInvocationLogger() - Constructor for class org.mockito.internal.debugging.VerboseMockInvocationLogger
- VerboseMockInvocationLogger(PrintStream) - Constructor for class org.mockito.internal.debugging.VerboseMockInvocationLogger
- VerifiableInvocationsFinder - Class in org.mockito.internal.invocation.finder
-
Author: Szczepan Faber, created at: 4/3/11
- VerificationAfterDelay - Interface in org.mockito.verification
-
VerificationAfterDelay is a
VerificationMode
that allows combining existing verification modes with an initial delay, e.g. - VerificationAwareInvocation - Interface in org.mockito.internal.exceptions
- VerificationCollector - Interface in org.mockito.junit
-
Use this rule in order to collect multiple verification failures and report at once.
- VerificationCollectorImpl - Class in org.mockito.internal.junit
-
Mockito implementation of VerificationCollector.
- VerificationCollectorImpl() - Constructor for class org.mockito.internal.junit.VerificationCollectorImpl
- VerificationData - Interface in org.mockito.internal.verification.api
-
Data needed to perform verification of interactions.
- VerificationDataImpl - Class in org.mockito.internal.verification
- VerificationDataImpl(InvocationContainerImpl, InvocationMatcher) - Constructor for class org.mockito.internal.verification.VerificationDataImpl
- VerificationDataInOrder - Interface in org.mockito.internal.verification.api
- VerificationDataInOrderImpl - Class in org.mockito.internal.verification.api
- VerificationDataInOrderImpl(InOrderContext, List<Invocation>, MatchableInvocation) - Constructor for class org.mockito.internal.verification.api.VerificationDataInOrderImpl
- VerificationEvent - Interface in org.mockito.verification
-
Contains all information about a verification that has happened.
- VerificationEventImpl - Class in org.mockito.internal.verification
- VerificationEventImpl(Object, VerificationMode, VerificationData, Throwable) - Constructor for class org.mockito.internal.verification.VerificationEventImpl
- VerificationInOrderFailure - Exception Class in org.mockito.exceptions.verification
- VerificationInOrderFailure(String) - Constructor for exception class org.mockito.exceptions.verification.VerificationInOrderFailure
- VerificationInOrderMode - Interface in org.mockito.internal.verification.api
- VerificationListener - Interface in org.mockito.listeners
-
This listener can be notified of verify invocations on a mock.
- verificationListeners() - Method in interface org.mockito.internal.progress.MockingProgress
- verificationListeners() - Method in class org.mockito.internal.progress.MockingProgressImpl
- VerificationMode - Interface in org.mockito.verification
-
Allows verifying that certain behavior happened at least once / exact number of times / never.
- VerificationModeFactory - Class in org.mockito.internal.verification
- VerificationOverTimeImpl - Class in org.mockito.internal.verification
-
Verifies that another verification mode (the delegate) is satisfied within a certain timeframe (before timeoutMillis has passed, measured from the call to verify()), and either returns immediately once it does, or waits until it is definitely satisfied once the full time has passed.
- VerificationOverTimeImpl(long, long, VerificationMode, boolean) - Constructor for class org.mockito.internal.verification.VerificationOverTimeImpl
-
Create this verification mode, to be used to verify invocation ongoing data later.
- VerificationOverTimeImpl(long, VerificationMode, boolean, Timer) - Constructor for class org.mockito.internal.verification.VerificationOverTimeImpl
-
Create this verification mode, to be used to verify invocation ongoing data later.
- verificationStarted(VerificationMode) - Method in interface org.mockito.internal.progress.MockingProgress
- verificationStarted(VerificationMode) - Method in class org.mockito.internal.progress.MockingProgressImpl
- VerificationStartedEvent - Interface in org.mockito.listeners
-
The instance of this class is passed to
VerificationStartedListener
. - VerificationStartedListener - Interface in org.mockito.listeners
-
This listener gets notified when the user starts verification.
- verificationStartedListeners - Variable in class org.mockito.internal.creation.settings.CreationSettings
- verificationStartedListeners(VerificationStartedListener...) - Method in class org.mockito.internal.creation.MockSettingsImpl
- verificationStartedListeners(VerificationStartedListener...) - Method in interface org.mockito.MockSettings
-
Registers a listener(s) that will be notified when user starts verification.
- VerificationStartedNotifier - Class in org.mockito.internal.listeners
- VerificationStrategy - Interface in org.mockito.verification
-
Strategy to possibly lazily perform verifications.
- VerificationWithTimeout - Interface in org.mockito.verification
-
VerificationWithTimeout is a
VerificationMode
that allows combining existing verification modes with 'timeout'. - VerificationWrapper<WrapperT> - Class in org.mockito.internal.verification
- VerificationWrapper(WrapperT) - Constructor for class org.mockito.internal.verification.VerificationWrapper
- VerificationWrapperInOrderWrapper - Class in org.mockito.internal.verification
- VerificationWrapperInOrderWrapper(VerificationWrapper<?>, InOrderImpl) - Constructor for class org.mockito.internal.verification.VerificationWrapperInOrderWrapper
- verify(VerificationData) - Method in class org.mockito.internal.verification.AtLeast
- verify(VerificationData) - Method in class org.mockito.internal.verification.AtMost
- verify(VerificationData) - Method in class org.mockito.internal.verification.Calls
- verify(VerificationData) - Method in class org.mockito.internal.verification.Description
-
Performs verification using the wrapped verification mode implementation.
- verify(VerificationData) - Method in class org.mockito.internal.verification.InOrderWrapper
- verify(VerificationData) - Method in class org.mockito.internal.verification.MockAwareVerificationMode
- verify(VerificationData) - Method in class org.mockito.internal.verification.NoInteractions
- verify(VerificationData) - Method in class org.mockito.internal.verification.NoMoreInteractions
- verify(VerificationData) - Method in class org.mockito.internal.verification.Only
- verify(VerificationData) - Method in class org.mockito.internal.verification.Times
- verify(VerificationData) - Method in class org.mockito.internal.verification.VerificationOverTimeImpl
-
Verify the given ongoing verification data, and confirm that it satisfies the delegate verification mode before the full duration has passed.
- verify(VerificationData) - Method in class org.mockito.internal.verification.VerificationWrapper
- verify(VerificationData) - Method in class org.mockito.internal.verification.VerificationWrapperInOrderWrapper
- verify(VerificationData) - Method in interface org.mockito.verification.VerificationMode
-
Performs the verification
- verify(MockedStatic.Verification) - Method in interface org.mockito.MockedStatic
- verify(MockedStatic.Verification, VerificationMode) - Method in class org.mockito.internal.MockedStaticImpl
- verify(MockedStatic.Verification, VerificationMode) - Method in interface org.mockito.MockedStatic
- verify(MockedStatic<?>, MockedStatic.Verification) - Method in interface org.mockito.InOrder
-
Verifies static interaction in order, with exactly one number of invocations.
- verify(MockedStatic<?>, MockedStatic.Verification, VerificationMode) - Method in interface org.mockito.InOrder
-
Verifies static interaction in order.
- verify(MockedStatic<?>, MockedStatic.Verification, VerificationMode) - Method in class org.mockito.internal.InOrderImpl
- verify(T) - Method in interface org.mockito.InOrder
-
Verifies interaction happened once in order.
- verify(T) - Method in class org.mockito.internal.InOrderImpl
- verify(T) - Static method in class org.mockito.Mockito
-
Verifies certain behavior happened once.
- verify(T, VerificationMode) - Method in interface org.mockito.InOrder
-
Verifies interaction in order.
- verify(T, VerificationMode) - Method in class org.mockito.internal.InOrderImpl
- verify(T, VerificationMode) - Method in class org.mockito.internal.MockitoCore
- verify(T, VerificationMode) - Static method in class org.mockito.Mockito
-
Verifies certain behavior happened at least once / exact number of times / never.
- verifyInOrder(VerificationDataInOrder) - Method in interface org.mockito.internal.verification.api.VerificationInOrderMode
- verifyInOrder(VerificationDataInOrder) - Method in class org.mockito.internal.verification.AtLeast
- verifyInOrder(VerificationDataInOrder) - Method in class org.mockito.internal.verification.Calls
- verifyInOrder(VerificationDataInOrder) - Method in class org.mockito.internal.verification.NoMoreInteractions
- verifyInOrder(VerificationDataInOrder) - Method in class org.mockito.internal.verification.Times
- verifyNoInteractions() - Method in class org.mockito.internal.MockedStaticImpl
- verifyNoInteractions() - Method in interface org.mockito.MockedStatic
- verifyNoInteractions(Object...) - Method in class org.mockito.internal.MockitoCore
- verifyNoInteractions(Object...) - Static method in class org.mockito.Mockito
-
Verifies that no interactions happened on given mocks.
- verifyNoMoreInteractions() - Method in interface org.mockito.InOrder
-
Verifies that no more interactions happened in order.
- verifyNoMoreInteractions() - Method in class org.mockito.internal.InOrderImpl
- verifyNoMoreInteractions() - Method in class org.mockito.internal.MockedStaticImpl
- verifyNoMoreInteractions() - Method in interface org.mockito.MockedStatic
- verifyNoMoreInteractions(Object...) - Method in class org.mockito.internal.MockitoCore
- verifyNoMoreInteractions(Object...) - Static method in class org.mockito.Mockito
-
Checks if any of given mocks has any unverified interaction.
- verifyNoMoreInteractionsInOrder(List<Object>, InOrderContext) - Method in class org.mockito.internal.MockitoCore
- VoidAnswer1<A0> - Interface in org.mockito.stubbing
-
Generic interface to be used for configuring mock's answer for a single argument invocation that returns nothing.
- VoidAnswer2<A0,
A1> - Interface in org.mockito.stubbing -
Generic interface to be used for configuring mock's answer for a two argument invocation that returns nothing.
- VoidAnswer3<A0,
A1, - Interface in org.mockito.stubbingA2> -
Generic interface to be used for configuring mock's answer for a three argument invocation that returns nothing.
- VoidAnswer4<A0,
A1, - Interface in org.mockito.stubbingA2, A3> -
Generic interface to be used for configuring mock's answer for a four argument invocation that returns nothing.
- VoidAnswer5<A0,
A1, - Interface in org.mockito.stubbingA2, A3, A4> -
Generic interface to be used for configuring mock's answer for a five argument invocation that returns nothing.
- VoidAnswer6<A0,
A1, - Interface in org.mockito.stubbingA2, A3, A4, A5> -
Generic interface to be used for configuring mock's answer for a six argument invocation that returns nothing.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form