forked from plusone/plusone-commons
修改类名,与 guava 的 Predicates 区分。
This commit is contained in:
@@ -13,7 +13,7 @@ class FunctionTests {
|
||||
@Test
|
||||
void test() {
|
||||
String str = "";
|
||||
Predicate<String> predicate = Predicates.<String>of(Objects::nonNull)
|
||||
Predicate<String> predicate = PredicateTools.<String>from(Objects::nonNull)
|
||||
.and(StringUtils::isNotBlank);
|
||||
assertFalse(predicate.test(str), "校验应是不通过");
|
||||
}
|
||||
|
Reference in New Issue
Block a user