Home
last modified time | relevance | path

Searched refs:expectedException (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/test/java/lang/Character/
DSupplementary.java745 private static void callToChars1(int codePoint, Class expectedException) { in callToChars1() argument
749 if (expectedException.isInstance(e)) { in callToChars1()
754 throw new RuntimeException("toChars(int) didn't throw " + expectedException.getName()); in callToChars1()
761 Class expectedException) { in callToChars3() argument
765 if (expectedException.isInstance(e)) { in callToChars3()
771 + expectedException.getName()); in callToChars3()
775 Class expectedException) { in callCodePoint() argument
780 if (expectedException.isInstance(e)) { in callCodePoint()
786 + " didn't throw " + expectedException.getName()); in callCodePoint()
790 Class expectedException) { in callCodePoint() argument
[all …]
/libcore/ojluni/src/test/java/lang/StringBuffer/
DSupplementary.java339 static void testAppendCodePoint(int codePoint, Class expectedException) { in testAppendCodePoint() argument
343 if (expectedException.isInstance(e)) { in testAppendCodePoint()
349 + expectedException.getName()); in testAppendCodePoint()
353 Class expectedException) { in testCodePointCount() argument
357 if (expectedException.isInstance(e)) { in testCodePointCount()
362 check(true, "codePointCount() didn't throw " + expectedException.getName()); in testCodePointCount()
366 Class expectedException) { in testOffsetByCodePoints() argument
370 if (expectedException.isInstance(e)) { in testOffsetByCodePoints()
375 check(true, "offsetByCodePoints() didn't throw " + expectedException.getName()); in testOffsetByCodePoints()
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCompletionStageTest.java521 Throwable expectedException = new RuntimeException(); in testExceptionallyAsync() local
524 stage.completeExceptionally(expectedException); in testExceptionallyAsync()
530 assertSame(expectedException, fn.getException()); in testExceptionallyAsync()
546 Throwable expectedException = new RuntimeException(); in testExceptionallyAsyncWithExecutor() local
550 stage.completeExceptionally(expectedException); in testExceptionallyAsyncWithExecutor()
556 assertSame(expectedException, fn.getException()); in testExceptionallyAsyncWithExecutor()
572 Throwable expectedException = new RuntimeException(); in testExceptionallyCompose() local
575 stage.completeExceptionally(expectedException); in testExceptionallyCompose()
581 assertSame(expectedException, fn.getException()); in testExceptionallyCompose()
596 Throwable expectedException = new RuntimeException(); in testExceptionallyComposeAsync() local
[all …]
/libcore/ojluni/src/test/java/lang/StringBuilder/
DSupplementary.java354 static void testAppendCodePoint(int codePoint, Class expectedException) { in testAppendCodePoint() argument
358 if (expectedException.isInstance(e)) { in testAppendCodePoint()
364 + expectedException.getName()); in testAppendCodePoint()
368 Class expectedException) { in testCodePointCount() argument
372 if (expectedException.isInstance(e)) { in testCodePointCount()
377 check(true, "codePointCount() didn't throw " + expectedException.getName()); in testCodePointCount()
381 Class expectedException) { in testOffsetByCodePoints() argument
385 if (expectedException.isInstance(e)) { in testOffsetByCodePoints()
390 check(true, "offsetByCodePoints() didn't throw " + expectedException.getName()); in testOffsetByCodePoints()
/libcore/luni/src/test/java/tests/security/spec/
DECFieldF2mTest.java93 final Exception expectedException) { in ECFieldF2mDomainParams() argument
97 this.x = expectedException; in ECFieldF2mDomainParams()
/libcore/ojluni/src/test/java/lang/invoke/
DExplicitCastArgumentsTest.java567 Class<? extends Throwable> expectedException) { in testConversion() argument
653 if (!failureExpected || !e.getClass().equals(expectedException)) { in testConversion()
/libcore/support/src/test/java/tests/resources/
Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/ ...
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java629 } catch (ErrnoException expectedException) { in test_NetlinkSocket()
630 assertEquals(expectedException.errno, EACCES); in test_NetlinkSocket()