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

com.github.dreamhead.moco.verification.BetweenVerification Maven / Gradle / Ivy

Go to download

Moco is an easy setup stub framework, mainly focusing on testing and integration.

There is a newer version: 1.5.0
Show newest version
package com.github.dreamhead.moco.verification;

import static java.lang.String.format;

public final class BetweenVerification extends AbstractTimesVerification {
    private final int min;
    private final int max;

    public BetweenVerification(final int min, final int max) {
        this.min = min;
        this.max = max;
    }

    @Override
    protected boolean meet(final int size) {
        return size >= min && size <= max;
    }

    @Override
    protected String expectedTip() {
        return format("{%d, %d}", min, max);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy