Home
last modified time | relevance | path

Searched defs:assertThrows (Results 1 – 9 of 9) sorted by relevance

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DAssert.kt28 fun <E : Throwable?> assertThrows(message: String? = null, in assertThrows() method
44 fun assertThrows(message: String? = null, executable: () -> Unit): Exception = in assertThrows() method
50 fun <E : Throwable?> assertThrows(exception: Class<E>? = null, executable: Runnable): E = in assertThrows() method
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DCtsTestUtils.java29 public static Throwable assertThrows(Runnable action) { in assertThrows() method in CtsTestUtils
33 public static <E extends Throwable> E assertThrows(Class<E> exceptionClass, Runnable action) { in assertThrows() method in CtsTestUtils
/cts/tests/tests/nfc/src/android/nfc/cts/
DNfcFrameworkInitializerTest.java44 private static void assertThrows(Class<? extends Exception> exceptionClass, Runnable r) { in assertThrows() method in NfcFrameworkInitializerTest
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothFrameworkInitializerTest.java55 private static void assertThrows(Class<? extends Exception> exceptionClass, Runnable r) { in assertThrows() method in BluetoothFrameworkInitializerTest
/cts/tests/tests/content/src/android/content/cts/
DActivityRequireContentUriPermissionFromCallerTest.java377 boolean assertThrows) throws Exception { in internalTest()
389 ModeFlags modeFlags, UriLocation uriLocation, boolean assertThrows) throws Exception { in internalTest_startActivity()
408 ModeFlags modeFlags, UriLocation uriLocation, boolean assertThrows) throws Exception { in internalTest_startActivityForResult()
423 private static String getErrorMessage(ModeFlags modeFlags, boolean assertThrows, boolean isOr) { in getErrorMessage()
/cts/libs/install/src/com/android/cts/install/lib/
DInstallUtils.java424 private static void assertThrows(Class expectedThrowableClass, String expectedFailMessage, in assertThrows() method in InstallUtils
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTest.java566 private static <T extends Throwable> void assertThrows(Class<T> clazz, Runnable r, in assertThrows() method in UiAutomationTest
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DServiceStateTest.java466 private static void assertThrows(Class<? extends Exception> exceptionClass, Runnable r) { in assertThrows() method in ServiceStateTest
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1053 public static <T extends Exception> void assertThrows(Class<T> clazz, Operation<Exception> r) in assertThrows() method in TestUtils
1061 public static <T extends Exception> void assertThrows( in assertThrows() method in TestUtils