/** * Allows at-least-once verification. E.g: * <pre class="code"><code class="java"> * verify(mock, atLeastOnce()).someMethod("some arg"); * </code></pre> * Alias to <code>atLeast(1)</code>. * <p> * See examples in javadoc for {@link Mockito} class * * @return verification mode */ public static VerificationMode atLeastOnce() { return VerificationModeFactory.atLeastOnce(); }
/** * Allows at-least-once verification. E.g: * <pre class="code"><code class="java"> * verify(mock, atLeastOnce()).someMethod("some arg"); * </code></pre> * Alias to <code>atLeast(1)</code>. * <p> * See examples in javadoc for {@link Mockito} class * * @return verification mode */ @CheckReturnValue public static VerificationMode atLeastOnce() { return VerificationModeFactory.atLeastOnce(); }
public VerificationMode atLeastOnce() { return copySelfWithNewVerificationMode(VerificationModeFactory.atLeastOnce()); }
/** * See the javadoc for {@link VerificationWithTimeout} */ public VerificationMode atLeastOnce() { return new Timeout(impl.getTreshhold(), impl.getTimeout(), VerificationModeFactory.atLeastOnce()); }
/** * Allows at-least-once verification. E.g: * <pre> * verify(mock, atLeastOnce()).someMethod("some arg"); * </pre> * Alias to atLeast(1) * <p> * See examples in javadoc for {@link Mockito} class * * @return verification mode */ public static VerificationMode atLeastOnce() { return VerificationModeFactory.atLeastOnce(); }
/** * See the javadoc for {@link VerificationWithTimeout} */ public VerificationMode atLeastOnce() { return new Timeout(impl.getTreshhold(), impl.getTimeout(), VerificationModeFactory.atLeastOnce()); }