use of java.util.function.DoublePredicate in project j2objc by google.
the class DoublePredicateTest method testAnd_null.
public void testAnd_null() throws Exception {
DoublePredicate alwaysTrue = x -> true;
try {
alwaysTrue.and(null);
fail();
} catch (NullPointerException expected) {
}
}
use of java.util.function.DoublePredicate in project jdk8u_jdk by JetBrains.
the class MatchOpTest method testDoubleStream.
@Test(dataProvider = "DoubleStreamTestData", dataProviderClass = DoubleStreamTestDataProvider.class)
public void testDoubleStream(String name, TestData.OfDouble data) {
for (DoublePredicate p : DOUBLE_PREDICATES) {
setContext("p", p);
for (Kind kind : Kind.values()) {
setContext("kind", kind);
exerciseTerminalOps(data, doubleKinds.get(kind).apply(p));
exerciseTerminalOps(data, s -> s.filter(dpFalse), doubleKinds.get(kind).apply(p));
exerciseTerminalOps(data, s -> s.filter(dpEven), doubleKinds.get(kind).apply(p));
}
}
}
Aggregations