Searched refs:assertThrows (Results 1 - 21 of 21) sorted by relevance

/frameworks/support/core/ktx/src/androidTest/java/androidx/core/content/res/
H A DTypedArrayTest.kt23 import androidx.testutils.assertThrows
39 assertThrows<IllegalArgumentException> {
50 assertThrows<IllegalArgumentException> {
62 assertThrows<IllegalArgumentException> {
73 assertThrows<IllegalArgumentException> {
85 assertThrows<IllegalArgumentException> {
97 assertThrows<IllegalArgumentException> {
108 assertThrows<IllegalArgumentException> {
119 assertThrows<IllegalArgumentException> {
131 assertThrows<IllegalArgumentExceptio
[all...]
/frameworks/support/testutils-ktx/src/main/java/androidx/testutils/
H A Dassertions.kt22 inline fun <reified T : Throwable> assertThrows(body: () -> Unit): ThrowableSubject {
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/os/
H A DPersistableBundleTest.kt22 import androidx.testutils.assertThrows
77 assertThrows<IllegalArgumentException> {
81 assertThrows<IllegalArgumentException> {
H A DBundleTest.kt27 import androidx.testutils.assertThrows
133 assertThrows<IllegalArgumentException> {
137 assertThrows<IllegalArgumentException> {
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/content/
H A DContentValuesTest.kt19 import androidx.testutils.assertThrows
54 assertThrows<IllegalArgumentException> {
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/database/sqlite/
H A DSQLiteDatabaseTest.kt23 import androidx.testutils.assertThrows
41 assertThrows<RuntimeException> {
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/
H A DCertUtilsTest.java23 import static org.testng.Assert.assertThrows;
93 assertThrows(CertParsingException.class, () -> CertUtils.decodeCert(in));
99 assertThrows(CertParsingException.class, () -> CertUtils.decodeCert(in));
105 assertThrows(CertParsingException.class, () -> CertUtils.decodeCert(in));
119 assertThrows(CertParsingException.class, () -> CertUtils.decodeCert(modifiedCertBytes));
134 assertThrows(CertParsingException.class, () -> CertUtils.decodeBase64("EVTVA=="));
145 assertThrows(CertParsingException.class, () -> CertUtils.getXmlRootNode(new byte[0]));
221 assertThrows(
234 assertThrows(
297 assertThrows(
[all...]
H A DSigXmlTest.java21 import static org.testng.Assert.assertThrows;
54 assertThrows(
80 assertThrows(
H A DCertXmlTest.java21 import static org.testng.Assert.assertThrows;
167 assertThrows(
179 assertThrows(
191 assertThrows(
/frameworks/base/core/tests/coretests/src/android/hardware/display/
H A DAmbientBrightnessDayStatsTest.java45 assertThrows(NullPointerException.class,
48 assertThrows(NullPointerException.class,
51 assertThrows(NullPointerException.class,
54 assertThrows(NullPointerException.class,
158 private static void assertThrows(Class<? extends Throwable> exceptionClass, method in class:AmbientBrightnessDayStatsTest
H A DBrightnessConfigurationTest.java87 assertThrows(IllegalArgumentException.class, () -> {
95 assertThrows(IllegalArgumentException.class, () -> {
105 assertThrows(IllegalArgumentException.class, () -> {
112 assertThrows(IllegalArgumentException.class, () -> {
175 private static void assertThrows(Class<? extends Throwable> exceptionClass, method in class:BrightnessConfigurationTest
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/util/
H A DAtomicFileTest.kt21 import androidx.testutils.assertThrows
54 assertThrows<IOException> {
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DCrossProfileAppsServiceImplTest.java14 import static org.testng.Assert.assertThrows;
204 assertThrows(
226 assertThrows(
246 assertThrows(
268 assertThrows(
288 assertThrows(
308 assertThrows(
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/view/
H A DViewGroupTest.kt24 import androidx.testutils.assertThrows
46 assertThrows<IndexOutOfBoundsException> {
50 assertThrows<IndexOutOfBoundsException> {
168 assertThrows<IndexOutOfBoundsException> {
H A DMenuTest.kt23 import androidx.testutils.assertThrows
128 assertThrows<IndexOutOfBoundsException> {
H A DViewTest.kt28 import androidx.testutils.assertThrows
158 assertThrows<IllegalStateException> {
258 assertThrows<ClassCastException> {
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/graphics/
H A DRegionTest.kt22 import androidx.testutils.assertThrows
140 assertThrows<IndexOutOfBoundsException> {
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/preference/
H A DPreferenceGroupTest.kt25 import androidx.testutils.assertThrows
172 assertThrows<IndexOutOfBoundsException> {
/frameworks/support/preference/ktx/src/androidTest/java/androidx/preference/
H A DPreferenceGroupTest.kt21 import androidx.testutils.assertThrows
168 assertThrows<IndexOutOfBoundsException> {
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
H A DSecureBoxTest.java20 import static org.testng.Assert.assertThrows;
295 assertThrows(
308 assertThrows(
321 assertThrows(
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/tests/functional/
H A DRadioTunerTest.java56 import static org.testng.Assert.assertThrows;
427 assertThrows(IllegalStateException.class, () -> mRadioTuner.setAnalogForced(true));

Completed in 288 milliseconds