Uses of Interface
org.mockito.verification.VerificationMode
-
Packages that use VerificationMode Package Description org.mockito Mockito is a mock library for java - seeMockito
class for usage.org.mockito.internal.verification org.mockito.verification Verification related classes. -
-
Uses of VerificationMode in org.mockito
Methods in org.mockito that return VerificationMode Modifier and Type Method Description static VerificationMode
Mockito. atLeast(int minNumberOfInvocations)
Allows at-least-x verification.static VerificationMode
Mockito. atLeastOnce()
Allows at-least-once verification.static VerificationMode
Mockito. atMost(int maxNumberOfInvocations)
Allows at-most-x verification.static VerificationMode
Mockito. atMostOnce()
Allows at-most-once verification.static VerificationMode
Mockito. calls(int wantedNumberOfInvocations)
Allows non-greedy verification in order.static VerificationMode
Mockito. description(String description)
Adds a description to be printed if verification fails.static VerificationMode
Mockito. never()
Alias totimes(0)
, seeMockito.times(int)
static VerificationMode
Mockito. only()
Allows checking if given method was the only one invoked.static VerificationMode
Mockito. times(int wantedNumberOfInvocations)
Allows verifying exact number of invocations.Methods in org.mockito with parameters of type VerificationMode Modifier and Type Method Description T
BDDMockito.Then. should(InOrder inOrder, VerificationMode mode)
T
BDDMockito.Then. should(VerificationMode mode)
void
InOrder. verify(MockedStatic<?> mockedStatic, MockedStatic.Verification verification, VerificationMode mode)
Verifies static interaction in order.<T> T
InOrder. verify(T mock, VerificationMode mode)
Verifies interaction in order.void
MockedStatic. verify(MockedStatic.Verification verification, VerificationMode mode)
static <T> T
Mockito. verify(T mock, VerificationMode mode)
Verifies certain behavior happened at least once / exact number of times / never. -
Uses of VerificationMode in org.mockito.internal.verification
Classes in org.mockito.internal.verification with annotations of type with type parameters of type that implement declared as with annotations of type with type parameters of type with annotations of type with annotations of type with type parameters of type that return that return types with arguments of type with parameters of type with type arguments of type that throw with annotations of type with annotations of type with parameters of type with type arguments of type that throw VerificationMode Modifier and Type Class Description class
org.mockito.internal.verification.VerificationWrapper<WrapperT extends VerificationMode>
-
Uses of VerificationMode in org.mockito.verification
Subinterfaces of VerificationMode in org.mockito.verification Modifier and Type Interface Description interface
VerificationAfterDelay
VerificationAfterDelay is aVerificationMode
that allows combining existing verification modes with an initial delay, e.g.interface
VerificationWithTimeout
VerificationWithTimeout is aVerificationMode
that allows combining existing verification modes with 'timeout'.Classes in org.mockito.verification that implement VerificationMode Modifier and Type Class Description class
After
See the javadoc forVerificationAfterDelay
class
Timeout
See the javadoc forVerificationWithTimeout
Methods in org.mockito.verification that return VerificationMode Modifier and Type Method Description VerificationMode
VerificationAfterDelay. atLeast(int minNumberOfInvocations)
Verifies that there is are least N invocations during the given period.VerificationMode
VerificationWithTimeout. atLeast(int minNumberOfInvocations)
Allows at-least-x verification within given timeout.VerificationMode
VerificationAfterDelay. atLeastOnce()
Verifies that there is at least 1 invocation during the given period.VerificationMode
VerificationWithTimeout. atLeastOnce()
Allows at-least-once verification within given timeout.VerificationMode
Timeout. atMost(int maxNumberOfInvocations)
VerificationMode
VerificationAfterDelay. atMost(int maxNumberOfInvocations)
Verifies that there is are most N invocations during the given period.VerificationMode
VerificationAfterDelay. atMostOnce()
Verifies that there is most 1 invocation during the given period.protected VerificationMode
After. copySelfWithNewVerificationMode(VerificationMode verificationMode)
protected VerificationMode
Timeout. copySelfWithNewVerificationMode(VerificationMode newVerificationMode)
default VerificationMode
VerificationMode. description(String description)
Description will be prepended to the assertion error if verification fails.VerificationMode
VerificationEvent. getMode()
VerificationMode
VerificationStrategy. maybeVerifyLazily(VerificationMode mode)
Possibly wrap the given VerificationMode and return a wrapping VerificationMode instead.VerificationMode
Timeout. never()
VerificationMode
VerificationAfterDelay. never()
Allows verification that there are no invocations at any point during the given period.VerificationMode
VerificationAfterDelay. only()
Verifies that there the given method is invoked and is the only method invoked.VerificationMode
VerificationWithTimeout. only()
Allows checking if given method was the only one invoked.VerificationMode
VerificationAfterDelay. times(int wantedNumberOfInvocations)
Verifies that there are exactly N invocations during the given period.VerificationMode
VerificationWithTimeout. times(int wantedNumberOfInvocations)
Allows verifying exact number of invocations within given timeoutMethods in org.mockito.verification with parameters of type VerificationMode Modifier and Type Method Description protected VerificationMode
After. copySelfWithNewVerificationMode(VerificationMode verificationMode)
protected VerificationMode
Timeout. copySelfWithNewVerificationMode(VerificationMode newVerificationMode)
VerificationMode
VerificationStrategy. maybeVerifyLazily(VerificationMode mode)
Possibly wrap the given VerificationMode and return a wrapping VerificationMode instead.Constructors in org.mockito.verification with parameters of type VerificationMode Constructor Description After(long delayMillis, VerificationMode verificationMode)
See the javadoc forVerificationAfterDelay
Timeout(long millis, VerificationMode delegate)
See the javadoc forVerificationWithTimeout
-