Searched refs:exClass (Results 1 – 3 of 3) sorted by relevance
/libcore/ojluni/src/test/java/nio/Buffer/ |
D | BulkPutBuffer.java | 337 private static void expectThrows(Class<?> exClass, Assert.ThrowingRunnable r) { in expectThrows() argument 341 if (e.getClass() != exClass && e.getCause().getClass() != exClass) { in expectThrows() 342 throw new RuntimeException("Expected " + exClass + in expectThrows()
|
/libcore/ojluni/src/test/java/util/HexFormat/ |
D | HexFormatTest.java | 307 Class<? extends Throwable> exClass) { in badParseHex() argument 308 assertThrows(exClass, in badParseHex() 311 assertThrows(exClass, in badParseHex() 317 Class<? extends Throwable> exClass) { in badFromHexDigits() argument 318 assertThrows(exClass, in badFromHexDigits() 320 assertThrows(exClass, in badFromHexDigits()
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | OsTest.java | 397 private static void expectException(ExceptionalRunnable r, Class<? extends Exception> exClass, in expectException() argument 403 assertEquals(msg + " threw unexpected exception", exClass, e.getClass()); in expectException() 418 Class<? extends Exception> exClass, Integer expectedErrno) { in expectBindException() argument 422 }, exClass, expectedErrno, msg); in expectBindException() 426 Class<? extends Exception> exClass, Integer expectedErrno) { in expectConnectException() argument 430 }, exClass, expectedErrno, msg); in expectConnectException()
|