com.fitbur.mockito.verification.After Maven / Gradle / Ivy
package com.fitbur.mockito.verification;
import com.fitbur.mockito.internal.verification.VerificationModeFactory;
import com.fitbur.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);
}
After(long pollingPeriod, long delayMillis, VerificationMode verificationMode) {
this(new VerificationOverTimeImpl(pollingPeriod, delayMillis, verificationMode, false));
}
After(VerificationOverTimeImpl verificationOverTime) {
super(verificationOverTime);
}
@Override
protected VerificationMode copySelfWithNewVerificationMode(VerificationMode verificationMode) {
return new After(wrappedVerification.copyWithVerificationMode(verificationMode));
}
@Override
public VerificationMode description(String description) {
return VerificationModeFactory.description(this, description);
}
}