Uses of Interface
org.mockito.verification.VerificationMode
-
Packages that use VerificationMode Package Description org.mockito Mockito is a mock library for java - see Mockito class for for usage.org.mockito.internal Internal classes, not to be used by clients.org.mockito.internal.progress Mocking progress stateful classes.org.mockito.internal.verification Verification logic.org.mockito.internal.verification.checkers verification checkersorg.mockito.verification -
-
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. calls(int wantedNumberOfInvocations)Allows non-greedy verification in order.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(VerificationMode mode)<T> TInOrder. verify(T mock, VerificationMode mode)Verifies interaction in order.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
Methods in org.mockito.internal with parameters of type VerificationMode Modifier and Type Method Description <T> TInOrderImpl. verify(T mock, VerificationMode mode)<T> TMockitoCore. verify(T mock, VerificationMode mode) -
Uses of VerificationMode in org.mockito.internal.progress
Methods in org.mockito.internal.progress that return VerificationMode Modifier and Type Method Description VerificationModeMockingProgress. pullVerificationMode()VerificationModeMockingProgressImpl. pullVerificationMode()VerificationModeThreadSafeMockingProgress. pullVerificationMode()Methods in org.mockito.internal.progress with parameters of type VerificationMode Modifier and Type Method Description voidMockingProgress. verificationStarted(VerificationMode verificationMode)voidMockingProgressImpl. verificationStarted(VerificationMode verify)voidThreadSafeMockingProgress. verificationStarted(VerificationMode verify) -
Uses of VerificationMode in org.mockito.internal.verification
Classes in org.mockito.internal.verification that implement VerificationMode Modifier and Type Class Description classAtLeastclassAtMostclassCallsclassInOrderWrapperclassMockAwareVerificationModeclassNoMoreInteractionsclassOnlyclassTimesclassVerificationOverTimeImplVerifies 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.Methods in org.mockito.internal.verification that return VerificationMode Modifier and Type Method Description static VerificationModeVerificationModeFactory. atLeast(int minNumberOfInvocations)static VerificationModeVerificationModeFactory. atLeastOnce()static VerificationModeVerificationModeFactory. atMost(int maxNumberOfInvocations)VerificationModeVerificationOverTimeImpl. getDelegate()static VerificationModeVerificationModeFactory. only()Methods in org.mockito.internal.verification with parameters of type VerificationMode Modifier and Type Method Description protected booleanVerificationOverTimeImpl. canRecoverFromFailure(VerificationMode verificationMode)Constructors in org.mockito.internal.verification with parameters of type VerificationMode Constructor Description MockAwareVerificationMode(java.lang.Object mock, VerificationMode mode)VerificationOverTimeImpl(long pollingPeriodMillis, long durationMillis, VerificationMode delegate, boolean returnOnSuccess)Create this verification mode, to be used to verify invocation ongoing data later.VerificationOverTimeImpl(long pollingPeriodMillis, long durationMillis, VerificationMode delegate, boolean returnOnSuccess, Timer timer)Create this verification mode, to be used to verify invocation ongoing data later. -
Uses of VerificationMode in org.mockito.internal.verification.checkers
Methods in org.mockito.internal.verification.checkers with parameters of type VerificationMode Modifier and Type Method Description voidMissingInvocationInOrderChecker. check(java.util.List<Invocation> invocations, InvocationMatcher wanted, VerificationMode mode, InOrderContext context) -
Uses of VerificationMode in org.mockito.verification
Classes in org.mockito.verification with type parameters of type VerificationMode Modifier and Type Class Description classVerificationWrapper<WrapperType extends VerificationMode>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 forVerificationWithTimeoutclassVerificationWrapper<WrapperType extends VerificationMode>Fields in org.mockito.verification declared as VerificationMode Modifier and Type Field Description protected WrapperTypeVerificationWrapper. wrappedVerificationMethods 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.VerificationModeVerificationWrapper. atLeast(int minNumberOfInvocations)VerificationModeVerificationAfterDelay. atLeastOnce()Verifies that there is at least 1 invocation during the given period.VerificationModeVerificationWithTimeout. atLeastOnce()Allows at-least-once verification within given timeout.VerificationModeVerificationWrapper. atLeastOnce()VerificationModeTimeout. atMost(int maxNumberOfInvocations)VerificationModeVerificationAfterDelay. atMost(int maxNumberOfInvocations)Verifies that there is are most N invocations during the given period.VerificationModeVerificationWithTimeout. atMost(int maxNumberOfInvocations)Deprecated.Deprecated Validation with timeout combined with never simply does not make sense, as atMost() will typically immediately pass, and therefore not wait the timeout.VerificationModeVerificationWrapper. atMost(int maxNumberOfInvocations)protected VerificationModeAfter. copySelfWithNewVerificationMode(VerificationMode verificationMode)protected VerificationModeTimeout. copySelfWithNewVerificationMode(VerificationMode newVerificationMode)protected abstract VerificationModeVerificationWrapper. copySelfWithNewVerificationMode(VerificationMode verificationMode)VerificationModeTimeout. never()VerificationModeVerificationAfterDelay. never()Allows verification that there are no invocations at any point during the given period.VerificationModeVerificationWithTimeout. never()Deprecated.Validation with timeout combined with never simply does not make sense, as never() will typically immediately pass, and therefore not wait the timeout.VerificationModeVerificationWrapper. never()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.VerificationModeVerificationWrapper. only()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 timeoutVerificationModeVerificationWrapper. times(int wantedNumberOfInvocations)Methods in org.mockito.verification with parameters of type VerificationMode Modifier and Type Method Description protected VerificationModeAfter. copySelfWithNewVerificationMode(VerificationMode verificationMode)protected VerificationModeTimeout. copySelfWithNewVerificationMode(VerificationMode newVerificationMode)protected abstract VerificationModeVerificationWrapper. copySelfWithNewVerificationMode(VerificationMode verificationMode)Constructors in org.mockito.verification with parameters of type VerificationMode Constructor Description After(long pollingPeriod, long delayMillis, VerificationMode verificationMode)After(long delayMillis, VerificationMode verificationMode)See the javadoc forVerificationAfterDelayTimeout(long millis, VerificationMode delegate)See the javadoc forVerificationWithTimeout
-