use of org.immutables.check.StringChecker in project immutables by immutables.
the class CriteriaModelProcessorTest method checkCreator.
private StringChecker checkCreator(String name) {
ValueAttribute attribute = findAttribute(name);
final String creator = attribute.criteria().matcher().creator();
final UnaryOperator<String> stripFn = str -> str.replaceAll("\\s+", "");
return Checkers.check(stripFn.apply(creator));
}
Aggregations