All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mockito.verification.After Maven / Gradle / Ivy

There is a newer version: 2.0.2-beta
Show newest version
package org.mockito.verification;

import org.mockito.internal.verification.VerificationOverTimeImpl;

/**
 * See the javadoc for {@link VerificationAfterDelay}
 * 

* Typically, you won't use this class explicitly. Instead use timeout() method on Mockito class. * See javadoc for {@link VerificationWithTimeout} */ public class After extends VerificationWrapper implements VerificationAfterDelay { /** * See the javadoc for {@link VerificationAfterDelay} *

* Typically, you won't use this class explicitly. Instead use timeout() method on Mockito class. * See javadoc for {@link VerificationWithTimeout} */ public After(long delayMillis, VerificationMode verificationMode) { this(10, delayMillis, verificationMode); } public After(long pollingPeriod, long delayMillis, VerificationMode verificationMode) { super(new VerificationOverTimeImpl(pollingPeriod, delayMillis, verificationMode, false)); } @Override protected VerificationMode copySelfWithNewVerificationMode(VerificationMode verificationMode) { return new After(wrappedVerification.getPollingPeriod(), wrappedVerification.getDuration(), verificationMode); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy