Home
last modified time | relevance | path

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

1234

/aosp_15_r20/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
H A 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
/aosp_15_r20/cts/tests/tests/content/src/android/content/cts/
H A 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()
/aosp_15_r20/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
H A 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
/aosp_15_r20/external/guava/guava-tests/test/com/google/common/base/
H A DReflectionFreeAssertThrows.java51 static <T extends Throwable> T assertThrows( in assertThrows() method in ReflectionFreeAssertThrows
57 static <T extends Throwable> T assertThrows( in assertThrows() method in ReflectionFreeAssertThrows
/aosp_15_r20/external/guava/android/guava-tests/test/com/google/common/base/
H A DReflectionFreeAssertThrows.java51 static <T extends Throwable> T assertThrows( in assertThrows() method in ReflectionFreeAssertThrows
57 static <T extends Throwable> T assertThrows( in assertThrows() method in ReflectionFreeAssertThrows
/aosp_15_r20/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DEvenMoreAsserts.java39 public static <T extends Exception> void assertThrows(Class<T> exception, Runnable r) { in assertThrows() method in EvenMoreAsserts
43 public static <T extends Exception> void assertThrows(String message, Class<T> exception, in assertThrows() method in EvenMoreAsserts
/aosp_15_r20/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/testutils/
DMiscAsserts.kt52 fun <T : Exception> assertThrows(expected: Class<T>, block: ThrowingRunnable): T { in assertThrows() method
56 fun <T : Exception> assertThrows(msg: String, expected: Class<T>, block: ThrowingRunnable): T { in assertThrows() method
/aosp_15_r20/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DSettingsFragmentTestCase.java211 assertThrows(() -> { in startActivityForResult_tooManyRequests_throwsError() method
235 assertThrows(() -> { in startIntentSenderForResult_tooManyRequests_throwsError() method
/aosp_15_r20/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/common/
DSettingsFragmentTestCase.java211 assertThrows(() -> { in startActivityForResult_tooManyRequests_throwsError() method
235 assertThrows(() -> { in startIntentSenderForResult_tooManyRequests_throwsError() method
/aosp_15_r20/external/kotlinpoet/kotlinpoet/src/commonTest/kotlin/com/squareup/kotlinpoet/
H A DAssertThrows.kt21 inline fun <reified T> assertThrows(block: () -> Unit): ThrowableSubject { in assertThrows() method
/aosp_15_r20/frameworks/base/services/tests/wmtests/src/com/android/server/wm/testing/
H A DAssert.java32 public static void assertThrows(Class<? extends Throwable> expectedThrowable, Runnable r) { in assertThrows() method in Assert
/aosp_15_r20/cts/tests/tests/nfc/src/android/nfc/cts/
H A DNfcFrameworkInitializerTest.java44 private static void assertThrows(Class<? extends Exception> exceptionClass, Runnable r) { in assertThrows() method in NfcFrameworkInitializerTest
/aosp_15_r20/frameworks/opt/telephony/testing/src/com/android/internal/telephony/testing/
DTelephonyAssertions.java33 public static <T extends Throwable> T assertThrows( in assertThrows() method in TelephonyAssertions
/aosp_15_r20/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
H A DBluetoothFrameworkInitializerTest.java62 private static void assertThrows(Class<? extends Exception> exceptionClass, Runnable r) { in assertThrows() method in BluetoothFrameworkInitializerTest
/aosp_15_r20/test/app_compat/csuite/harness/src/test/java/com/android/csuite/testing/
DMoreAsserts.java44 public static <T extends Throwable> T assertThrows( in assertThrows() method in MoreAsserts
/aosp_15_r20/external/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/testing/
H A DAssertUtils.java15 public static <T extends Throwable> T assertThrows(Class<T> cls, CheckedRunnable<T> fn) { in assertThrows() method in AssertUtils
/aosp_15_r20/packages/modules/GeoTZ/s2storage/src/testing/java/com/android/storage/testing/
DMoreAsserts.java31 public static <T extends Throwable> T assertThrows( in assertThrows() method in MoreAsserts
/aosp_15_r20/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
H A DShadowIsoDepTest.java59 private static <T extends Throwable> void assertThrows(Class<T> clazz, Callable<?> callable) { in assertThrows() method in ShadowIsoDepTest
/aosp_15_r20/frameworks/base/core/tests/coretests/src/android/hardware/display/
H A DAmbientBrightnessDayStatsTest.java159 private static void assertThrows(Class<? extends Throwable> exceptionClass, in assertThrows() method in AmbientBrightnessDayStatsTest
H A DBrightnessConfigurationTest.java266 private static void assertThrows(Class<? extends Throwable> exceptionClass, in assertThrows() method in BrightnessConfigurationTest
/aosp_15_r20/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DHexDumpTest.java178 private static void assertThrows(Class<? extends RuntimeException> clazz, Runnable runnable) { in assertThrows() method in HexDumpTest
/aosp_15_r20/external/junit/src/main/java/org/junit/
H A DAssert.java979 public static <T extends Throwable> T assertThrows(Class<T> expectedThrowable, in assertThrows() method in Assert
998 public static <T extends Throwable> T assertThrows(String message, Class<T> expectedThrowable, in assertThrows() method in Assert
/aosp_15_r20/external/cronet/components/cronet/android/test/javatests/src/org/chromium/net/apihelpers/
H A DContentTypeParametersParserTest.java153 private <E extends Throwable> E assertThrows(Class<E> exceptionType, ThrowingRunnable runnable) in assertThrows() method in ContentTypeParametersParserTest
/aosp_15_r20/packages/modules/Permission/tests/cts/permission/telephony/src/android/permission/cts/telephony/
DTelephonyManagerPermissionTest.java411 private static <T extends Throwable> void assertThrows(Class<T> clazz, Runnable r, in assertThrows() method in TelephonyManagerPermissionTest
/aosp_15_r20/external/grpc-grpc-java/binder/src/test/java/io/grpc/binder/internal/
H A DOneWayBinderProxyTest.java180 private static <T extends Throwable> T assertThrows( in assertThrows() method in OneWayBinderProxyTest

1234