Home
last modified time | relevance | path

Searched refs:expectedExceptionType (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/testutis/
DTestUtils.java26 public static void assertExpectException(Class<? extends Throwable> expectedExceptionType, in assertExpectException() argument
30 Assert.fail("Expected exception type " + expectedExceptionType.getName() in assertExpectException()
34 "Expected exception type was " + expectedExceptionType.getName() in assertExpectException()
36 expectedExceptionType.isAssignableFrom(e.getClass())); in assertExpectException()
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java402 public static void assertExpectException(Class<? extends Throwable> expectedExceptionType, in assertExpectException() argument
404 assertExpectException("", expectedExceptionType, expectedExceptionMessageRegex, r); in assertExpectException()
418 Class<? extends Throwable> expectedExceptionType, in assertExpectException() argument
424 "Expected exception type was " + expectedExceptionType.getName() in assertExpectException()
426 expectedExceptionType.isAssignableFrom(e.getClass())); in assertExpectException()
432 Assert.fail("Expected exception type " + expectedExceptionType.getName() in assertExpectException()