Home
last modified time | relevance | path

Searched refs:assertThrowsNPE (Results 1 – 7 of 7) sorted by relevance

/libcore/ojluni/src/test/java/util/Arrays/
DStreamAndSpliterator.java45 assertThrowsNPE(() -> Arrays.stream((int[]) null, 0, 0)); in testStreamNPEs()
46 assertThrowsNPE(() -> Arrays.stream((long[]) null, 0, 0)); in testStreamNPEs()
47 assertThrowsNPE(() -> Arrays.stream((double[]) null, 0, 0)); in testStreamNPEs()
48 assertThrowsNPE(() -> Arrays.stream((String[]) null, 0, 0)); in testStreamNPEs()
75 assertThrowsNPE(() -> Arrays.spliterator((int[]) null, 0, 0)); in testSpliteratorNPEs()
76 assertThrowsNPE(() -> Arrays.spliterator((long[]) null, 0, 0)); in testSpliteratorNPEs()
77 assertThrowsNPE(() -> Arrays.spliterator((double[]) null, 0, 0)); in testSpliteratorNPEs()
78 assertThrowsNPE(() -> Arrays.spliterator((String[]) null, 0, 0)); in testSpliteratorNPEs()
105 assertThrowsNPE(() -> Spliterators.spliterator((int[]) null, 0, 0, 0)); in testSpliteratorNPEsFromSpliterators()
106 assertThrowsNPE(() -> Spliterators.spliterator((long[]) null, 0, 0, 0)); in testSpliteratorNPEsFromSpliterators()
[all …]
/libcore/ojluni/src/test/java/io/InputStream/
DTransferTo.java49 assertThrowsNPE(() -> in.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
53 assertThrowsNPE(() -> in.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
57 assertThrowsNPE(() -> in.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
65 assertThrowsNPE(() -> fin.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
297 public static void assertThrowsNPE(Thrower thrower, String message) {
/libcore/ojluni/src/test/java/io/Reader/
DTransferTo.java50 assertThrowsNPE(() -> in.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
54 assertThrowsNPE(() -> in.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
58 assertThrowsNPE(() -> in.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
66 assertThrowsNPE(() -> fin.transferTo(null), "out"); in ifOutIsNullThenNpeIsThrown()
321 public static void assertThrowsNPE(Thrower thrower, String message) {
/libcore/ojluni/src/test/java/util/Collections/
DEmptyNavigableSet.java91 private void assertThrowsNPE(ThrowingRunnable r, String s) { in assertThrowsNPE() method in EmptyNavigableSet
193 assertThrowsNPE( in testHeadSet() method
227 assertThrowsNPE( in testSubSet() method
233 assertThrowsNPE( in testSubSet() method
239 assertThrowsNPE( in testSubSet() method
347 assertThrowsNPE( in testTailSet()
DEmptyNavigableMap.java88 private void assertThrowsNPE(ThrowingRunnable r, String s) { in assertThrowsNPE() method in EmptyNavigableMap
182 assertThrowsNPE( in testHeadMap() method
208 assertThrowsNPE( in testSubMap() method
214 assertThrowsNPE( in testSubMap() method
220 assertThrowsNPE( in testSubMap() method
327 assertThrowsNPE( in testTailMap()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/
DSpliteratorTestHelper.java226 assertThrowsNPE(() -> psp.forEachRemaining((IntConsumer) null)); in testNullPointerException()
227 assertThrowsNPE(() -> psp.tryAdvance((IntConsumer) null)); in testNullPointerException()
231 assertThrowsNPE(() -> psp.forEachRemaining((LongConsumer) null)); in testNullPointerException()
232 assertThrowsNPE(() -> psp.tryAdvance((LongConsumer) null)); in testNullPointerException()
236 assertThrowsNPE(() -> psp.forEachRemaining((DoubleConsumer) null)); in testNullPointerException()
237 assertThrowsNPE(() -> psp.tryAdvance((DoubleConsumer) null)); in testNullPointerException()
240 assertThrowsNPE(() -> sp.forEachRemaining(null)); in testNullPointerException()
241 assertThrowsNPE(() -> sp.tryAdvance(null)); in testNullPointerException()
655 public static void assertThrowsNPE(ThrowingRunnable r) { in assertThrowsNPE() method
/libcore/ojluni/src/test/java/util/Map/
DDefaults.java167 assertThrowsNPE(() -> map.replaceAll(null)); in testReplaceAllNoNullReplacement()
168assertThrowsNPE(() -> map.replaceAll((k,v) -> null)); //should not allow replacement with null val… in testReplaceAllNoNullReplacement()
211 assertThrowsNPE(() -> map.replace(FIRST_KEY, null)); in testReplaceKVNoNulls()
250 assertThrowsNPE(() -> map.replace(FIRST_KEY, FIRST_VALUE, null)); in testReplaceKVVNoNulls()
251 assertThrowsNPE( in testReplaceKVVNoNulls() method
326 assertThrowsNPE(() -> map.computeIfAbsent(KEYS[1], null)); in testComputeIfAbsentNullFunction()
371 assertThrowsNPE(() -> map.computeIfPresent(KEYS[1], null)); in testComputeIfPresentNullFunction()
462 assertThrowsNPE(() -> map.compute(KEYS[1], null)); in testComputeNullFunction()
532 assertThrowsNPE(() -> map.merge(KEYS[1], VALUES[1], null)); in testMergeNullMerger()
972 public static void assertThrowsNPE(ThrowingRunnable r) {