com.github.httpmock.api.times.AtLeast Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mock-http-server-junit Show documentation
Show all versions of mock-http-server-junit Show documentation
Mock HTTP Server - JUnit Rules
The newest version!
package com.github.httpmock.api.times;
public class AtLeast implements Times {
private int numberOfTimes;
public AtLeast(int numberOfTimes) {
this.numberOfTimes = numberOfTimes;
}
@Override
public boolean matches(int num) {
return num >= numberOfTimes;
}
@Override
public String getFailedDescription() {
return String.format("at least %d times", numberOfTimes);
}
public static AtLeast atLeast(int numberOfTimes) {
return new AtLeast(numberOfTimes);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy