Uses of Interface
org.mockito.verification.VerificationMode
-
Packages that use VerificationMode Package Description org.mockito Mockito is a mock library for java - seeMockitoclass 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 VerificationModeMockito. atLeast(int minNumberOfInvocations)Allows at-least-x verification.static VerificationModeMockito. atLeastOnce()Allows at-least-once verification.static VerificationModeMockito. atMost(int maxNumberOfInvocations)Allows at-most-x verification.static VerificationModeMockito. atMostOnce()Allows at-most-once verification.static VerificationModeMockito. calls(int wantedNumberOfInvocations)Allows non-greedy verification in order.static VerificationModeMockito. description(String description)Adds a description to be printed if verification fails.static VerificationModeMockito. never()Alias totimes(0), seeMockito.times(int)static VerificationModeMockito. only()Allows checking if given method was the only one invoked.static VerificationModeMockito. times(int wantedNumberOfInvocations)Allows verifying exact number of invocations.Methods in org.mockito with parameters of type VerificationMode Modifier and Type Method Description TBDDMockito.Then. should(InOrder inOrder, VerificationMode mode)TBDDMockito.Then. should(VerificationMode mode)voidInOrder. verify(MockedStatic<?> mockedStatic, MockedStatic.Verification verification, VerificationMode mode)Verifies static interaction in order.<T> TInOrder. verify(T mock, VerificationMode mode)Verifies interaction in order.voidMockedStatic. verify(MockedStatic.Verification verification, VerificationMode mode)static <T> TMockito. 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 classorg.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 interfaceVerificationAfterDelayVerificationAfterDelay is aVerificationModethat allows combining existing verification modes with an initial delay, e.g.interfaceVerificationWithTimeoutVerificationWithTimeout is aVerificationModethat allows combining existing verification modes with 'timeout'.Classes in org.mockito.verification that implement VerificationMode Modifier and Type Class Description classAfterSee the javadoc forVerificationAfterDelayclassTimeoutSee the javadoc forVerificationWithTimeoutMethods in org.mockito.verification that return VerificationMode Modifier and Type Method Description VerificationModeVerificationAfterDelay. atLeast(int minNumberOfInvocations)Verifies that there is are least N invocations during the given period.VerificationModeVerificationWithTimeout. atLeast(int minNumberOfInvocations)Allows at-least-x verification within given timeout.VerificationModeVerificationAfterDelay. atLeastOnce()Verifies that there is at least 1 invocation during the given period.VerificationModeVerificationWithTimeout. atLeastOnce()Allows at-least-once verification within given timeout.VerificationModeTimeout. atMost(int maxNumberOfInvocations)VerificationModeVerificationAfterDelay. atMost(int maxNumberOfInvocations)Verifies that there is are most N invocations during the given period.VerificationModeVerificationAfterDelay. atMostOnce()Verifies that there is most 1 invocation during the given period.protected VerificationModeAfter. copySelfWithNewVerificationMode(VerificationMode verificationMode)protected VerificationModeTimeout. copySelfWithNewVerificationMode(VerificationMode newVerificationMode)default VerificationModeVerificationMode. description(String description)Description will be prepended to the assertion error if verification fails.VerificationModeVerificationEvent. getMode()VerificationModeVerificationStrategy. maybeVerifyLazily(VerificationMode mode)Possibly wrap the given VerificationMode and return a wrapping VerificationMode instead.VerificationModeTimeout. never()VerificationModeVerificationAfterDelay. never()Allows verification that there are no invocations at any point during the given period.VerificationModeVerificationAfterDelay. only()Verifies that there the given method is invoked and is the only method invoked.VerificationModeVerificationWithTimeout. only()Allows checking if given method was the only one invoked.VerificationModeVerificationAfterDelay. times(int wantedNumberOfInvocations)Verifies that there are exactly N invocations during the given period.VerificationModeVerificationWithTimeout. 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 VerificationModeAfter. copySelfWithNewVerificationMode(VerificationMode verificationMode)protected VerificationModeTimeout. copySelfWithNewVerificationMode(VerificationMode newVerificationMode)VerificationModeVerificationStrategy. 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 forVerificationAfterDelayTimeout(long millis, VerificationMode delegate)See the javadoc forVerificationWithTimeout
-