Home
last modified time | relevance | path

Searched refs:checkNPE (Results 1 – 24 of 24) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DIterateTest.java42 import static org.openjdk.testlib.java.util.stream.ThrowableHelper.checkNPE;
92 checkNPE(() -> Stream.iterate("", null, x -> x + "a")); in testNPE()
93 checkNPE(() -> Stream.iterate("", String::isEmpty, null)); in testNPE()
94 checkNPE(() -> IntStream.iterate(0, null, x -> x + 1)); in testNPE()
95 checkNPE(() -> IntStream.iterate(0, x -> x < 10, null)); in testNPE()
96 checkNPE(() -> LongStream.iterate(0, null, x -> x + 1)); in testNPE()
97 checkNPE(() -> LongStream.iterate(0, x -> x < 10, null)); in testNPE()
98 checkNPE(() -> DoubleStream.iterate(0, null, x -> x + 1)); in testNPE()
99 checkNPE(() -> DoubleStream.iterate(0, x -> x < 10, null)); in testNPE()
DCollectAndSummaryStatisticsTest.java46 import static org.openjdk.testlib.java.util.stream.ThrowableHelper.checkNPE;
52 checkNPE(() -> IntStream.of(1).collect(null, in testIntCollectNull()
55 checkNPE(() -> IntStream.of(1).collect(IntSummaryStatistics::new, in testIntCollectNull()
58 checkNPE(() -> IntStream.of(1).collect(IntSummaryStatistics::new, in testIntCollectNull()
64 checkNPE(() -> LongStream.of(1).collect(null, in testLongCollectNull()
67 checkNPE(() -> LongStream.of(1).collect(LongSummaryStatistics::new, in testLongCollectNull()
70 checkNPE(() -> LongStream.of(1).collect(LongSummaryStatistics::new, in testLongCollectNull()
76 checkNPE(() -> DoubleStream.of(1).collect(null, in testDoubleCollectNull()
79 checkNPE(() -> DoubleStream.of(1).collect(DoubleSummaryStatistics::new, in testDoubleCollectNull()
82 checkNPE(() -> DoubleStream.of(1).collect(DoubleSummaryStatistics::new, in testDoubleCollectNull()
DMapMultiOpTest.java62 import static org.openjdk.testlib.java.util.stream.ThrowableHelper.checkNPE;
92 checkNPE(() -> s.mapMulti(null)); in testNullMapper()
93 checkNPE(() -> s.mapMultiToInt(null)); in testNullMapper()
94 checkNPE(() -> s.mapMultiToDouble(null)); in testNullMapper()
95 checkNPE(() -> s.mapMultiToLong(null)); in testNullMapper()
187 checkNPE(() -> s.mapMulti(null)); in testIntNullMapper()
241 checkNPE(() -> s.mapMulti(null)); in testDoubleNullMapper()
289 checkNPE(() -> s.mapMulti(null)); in testLongNullMapper()
DFlatMapOpTest.java51 import static org.openjdk.testlib.java.util.stream.ThrowableHelper.checkNPE;
58 checkNPE(() -> Stream.of(1).flatMap(null)); in testNullMapper()
59 checkNPE(() -> IntStream.of(1).flatMap(null)); in testNullMapper()
60 checkNPE(() -> LongStream.of(1).flatMap(null)); in testNullMapper()
61 checkNPE(() -> DoubleStream.of(1).flatMap(null)); in testNullMapper()
DStreamCloseTest.java36 import static org.openjdk.testlib.java.util.stream.ThrowableHelper.checkNPE;
47 checkNPE(() -> Stream.of(1).onClose(null)); in testNullCloseHandler()
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleTestByteArrayAsLong.java209 checkNPE(() -> { in testArrayNPE() method
213 checkNPE(() -> { in testArrayNPE() method
217 checkNPE(() -> { in testArrayNPE() method
221 checkNPE(() -> { in testArrayNPE() method
225 checkNPE(() -> { in testArrayNPE() method
229 checkNPE(() -> { in testArrayNPE() method
233 checkNPE(() -> { in testArrayNPE() method
237 checkNPE(() -> { in testArrayNPE() method
241 checkNPE(() -> { in testArrayNPE() method
245 checkNPE(() -> { in testArrayNPE() method
[all …]
DVarHandleTestByteArrayAsInt.java209 checkNPE(() -> { in testArrayNPE() method
213 checkNPE(() -> { in testArrayNPE() method
217 checkNPE(() -> { in testArrayNPE() method
221 checkNPE(() -> { in testArrayNPE() method
225 checkNPE(() -> { in testArrayNPE() method
229 checkNPE(() -> { in testArrayNPE() method
233 checkNPE(() -> { in testArrayNPE() method
237 checkNPE(() -> { in testArrayNPE() method
241 checkNPE(() -> { in testArrayNPE() method
245 checkNPE(() -> { in testArrayNPE() method
[all …]
DVarHandleTestMethodTypeDouble.java132 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
159 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
182 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
209 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
232 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
259 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
282 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
309 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
332 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
358 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
[all …]
DVarHandleTestMethodTypeFloat.java132 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
159 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
182 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
209 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
232 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
259 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
282 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
309 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
332 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
358 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
[all …]
DVarHandleTestMethodTypeBoolean.java132 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
159 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
182 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
209 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
232 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
259 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
282 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
309 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
332 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
358 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
[all …]
DVarHandleTestMethodTypeLong.java132 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
159 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
182 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
209 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
232 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
259 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
282 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
309 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
332 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
358 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
[all …]
DVarHandleTestMethodTypeInt.java132 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
159 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
182 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
209 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
232 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
259 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
282 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
309 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
332 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
358 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
[all …]
DVarHandleTestMethodTypeByte.java132 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
159 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
182 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
209 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
232 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
259 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
282 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
309 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
332 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
358 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
[all …]
DVarHandleTestMethodTypeShort.java132 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
159 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
182 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
209 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
232 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
259 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
282 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
309 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
332 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
358 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
[all …]
DVarHandleTestMethodTypeChar.java132 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
159 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
182 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
209 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
232 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
259 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
282 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
309 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
332 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
358 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
[all …]
DVarHandleTestByteArrayAsFloat.java209 checkNPE(() -> { in testArrayNPE() method
213 checkNPE(() -> { in testArrayNPE() method
217 checkNPE(() -> { in testArrayNPE() method
221 checkNPE(() -> { in testArrayNPE() method
225 checkNPE(() -> { in testArrayNPE() method
229 checkNPE(() -> { in testArrayNPE() method
233 checkNPE(() -> { in testArrayNPE() method
237 checkNPE(() -> { in testArrayNPE() method
241 checkNPE(() -> { in testArrayNPE() method
245 checkNPE(() -> { in testArrayNPE() method
[all …]
DVarHandleTestByteArrayAsDouble.java209 checkNPE(() -> { in testArrayNPE() method
213 checkNPE(() -> { in testArrayNPE() method
217 checkNPE(() -> { in testArrayNPE() method
221 checkNPE(() -> { in testArrayNPE() method
225 checkNPE(() -> { in testArrayNPE() method
229 checkNPE(() -> { in testArrayNPE() method
233 checkNPE(() -> { in testArrayNPE() method
237 checkNPE(() -> { in testArrayNPE() method
241 checkNPE(() -> { in testArrayNPE() method
245 checkNPE(() -> { in testArrayNPE() method
[all …]
DVarHandleTestMethodTypeString.java132 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
159 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
182 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
209 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
232 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
259 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
282 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
309 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
332 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
358 checkNPE(() -> { // null receiver in testInstanceFieldWrongMethodType() method
[all …]
DX-VarHandleTestByteArrayView.java.template241 checkNPE(() -> {
245 checkNPE(() -> {
249 checkNPE(() -> {
253 checkNPE(() -> {
257 checkNPE(() -> {
261 checkNPE(() -> {
265 checkNPE(() -> {
269 checkNPE(() -> {
274 checkNPE(() -> {
278 checkNPE(() -> {
[all …]
DVarHandleTestByteArrayAsShort.java209 checkNPE(() -> { in testArrayNPE() method
213 checkNPE(() -> { in testArrayNPE() method
217 checkNPE(() -> { in testArrayNPE() method
221 checkNPE(() -> { in testArrayNPE() method
225 checkNPE(() -> { in testArrayNPE() method
229 checkNPE(() -> { in testArrayNPE() method
233 checkNPE(() -> { in testArrayNPE() method
237 checkNPE(() -> { in testArrayNPE() method
250 checkNPE(() -> { in testArrayNPE() method
254 checkNPE(() -> { in testArrayNPE() method
[all …]
DVarHandleTestByteArrayAsChar.java209 checkNPE(() -> { in testArrayNPE() method
213 checkNPE(() -> { in testArrayNPE() method
217 checkNPE(() -> { in testArrayNPE() method
221 checkNPE(() -> { in testArrayNPE() method
225 checkNPE(() -> { in testArrayNPE() method
229 checkNPE(() -> { in testArrayNPE() method
233 checkNPE(() -> { in testArrayNPE() method
237 checkNPE(() -> { in testArrayNPE() method
250 checkNPE(() -> { in testArrayNPE() method
254 checkNPE(() -> { in testArrayNPE() method
[all …]
DX-VarHandleTestMethodType.java.template132 checkNPE(() -> { // null receiver
159 checkNPE(() -> { // null receiver
182 checkNPE(() -> { // null receiver
209 checkNPE(() -> { // null receiver
232 checkNPE(() -> { // null receiver
259 checkNPE(() -> { // null receiver
282 checkNPE(() -> { // null receiver
309 checkNPE(() -> { // null receiver
333 checkNPE(() -> { // null receiver
359 checkNPE(() -> { // null receiver
[all …]
DVarHandleBaseTest.java118 static void checkNPE(ThrowingRunnable r) { in checkNPE() method in VarHandleBaseTest
122 static void checkNPE(Object message, ThrowingRunnable r) { in checkNPE() method in VarHandleBaseTest
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DThrowableHelper.java42 public static void checkNPE(Runnable r) { in checkNPE() method in ThrowableHelper