com.pivotallabs.greatexpectations.matchers.ComparableMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of great-expectations Show documentation
Show all versions of great-expectations Show documentation
Jasmine-style expect() for Java.
package com.pivotallabs.greatexpectations.matchers;
import com.pivotallabs.greatexpectations.MatcherOf;
@MatcherOf(Comparable.class)
public class ComparableMatcher> extends ObjectMatcher {
public boolean toBeGreaterThan(T t) {
return actual.compareTo(t) > 0;
}
public boolean toBeLessThan(T t) {
return actual.compareTo(t) < 0;
}
}