Package org.mockito.verification

Source Code of org.mockito.verification.After

package org.mockito.verification;

import org.mockito.internal.verification.VerificationOverTimeImpl;

/**
* See the javadoc for {@link VerificationAfterDelay}
* <p>
* 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<VerificationOverTimeImpl> implements VerificationAfterDelay {
   
    /**
     * See the javadoc for {@link VerificationAfterDelay}
     * <p>
     * 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);
    }

}
TOP

Related Classes of org.mockito.verification.After

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.