Searched refs:assertThrows (Results 1 – 7 of 7) sorted by relevance
/test/app_compat/csuite/harness/src/test/java/com/android/csuite/testing/ |
D | MoreAssertsTest.java | 19 import static com.android.csuite.testing.MoreAsserts.assertThrows; 32 assertThrows( in assertThrows_noExceptionThrown_fails() 43 assertThrows( in assertThrows_differentExceptionTypeThrown_fails() 52 assertThrows( in assertThrows_superTypeOfExpectedExceptionTypeThrown_fails() 64 assertThrows( in assertThrows_expectedExceptionTypeThrown_returnsSameObject() 78 assertThrows( in assertThrows_subTypeOfExpectedExceptionTypeThrown_returnsSameObject()
|
D | MoreAsserts.java | 46 public static <T extends Throwable> T assertThrows( in assertThrows() method in MoreAsserts
|
/test/app_compat/csuite/harness/src/test/java/com/android/csuite/core/ |
D | SystemAppUninstallerTest.java | 18 import static org.testng.Assert.assertThrows; 48 assertThrows( in uninstallPackage_packageNameIsNull_throws() 63 assertThrows( in uninstallPackage_frameworkNotRunning_startsFrameworkOrThrows() 105 assertThrows( in uninstallPackage_checkPackageInstalledCommandFailed_throws() 119 assertThrows( in uninstallPackage_getInstallDirectoryCommandFailed_throws() 159 assertThrows( in uninstallPackage_adbRootCommandFailed_throws() 169 assertThrows( in uninstallPackage_adbRootFailed_throws() 179 assertThrows( in uninstallPackage_adbDisableRootCommandFailed_throws() 189 assertThrows( in uninstallPackage_adbDisableRootFailed_throws() 199 assertThrows( in uninstallPackage_adbRemountFailed_throws() [all …]
|
/test/app_compat/csuite/harness/src/test/java/com/android/compatibility/targetprep/ |
D | AppSetupPreparerTest.java | 39 import static org.testng.Assert.assertThrows; 127 assertThrows(TargetSetupError.class, () -> preparer.setUp(NULL_DEVICE, NULL_BUILD_INFO)); in setUp_exceedsRetryLimit_throwsException() 137 assertThrows( in setUp_negativeTimeout_throwsException() 164 assertThrows(TargetSetupError.class, () -> preparer.setUp(NULL_DEVICE, NULL_BUILD_INFO)); in setUp_exceedsTimeout_throwsException() 195 assertThrows(TargetSetupError.class, () -> preparer.setUp(NULL_DEVICE, NULL_BUILD_INFO)); in setUp_timesOutAndExceedsRetryLimit_doesNotThrowException() 233 assertThrows( in setUp_negativeMaxRetry_throwsException() 249 assertThrows( in setUp_deviceNotAvailableAndWaitEnabled_throwsDeviceNotAvailableException() 264 assertThrows(TargetSetupError.class, () -> preparer.setUp(device, NULL_BUILD_INFO)); in setUp_deviceAvailableAndWaitEnabled_doesNotChangeException() 278 assertThrows(TargetSetupError.class, () -> preparer.setUp(device, NULL_BUILD_INFO)); in setUp_deviceNotAvailableAndWaitDisabled_doesNotChangeException() 291 assertThrows( in setUp_negativeExponentialBackoffMultiplier_throwsIllegalArgumentException() [all …]
|
D | CheckGmsPreparerTest.java | 20 import static org.testng.Assert.assertThrows; 95 assertThrows(TargetSetupError.class, () -> mPreparer.setUp(testInfo)); in tearDown_setUpThrows_doesNotCheck() 166 assertThrows(TargetSetupError.class, () -> mPreparer.setUp(createTestInfo(device))); in setUp_gmsProcessNotRecoveredAfterReboot_throwsException()
|
/test/app_compat/csuite/harness/src/test/java/com/android/csuite/config/ |
D | AppRemoteFileResolverTest.java | 19 import static com.android.csuite.testing.MoreAsserts.assertThrows; 94 assertThrows( in unsupportedUriScheme_throwsException() 108 assertThrows( in opaqueUri_throwsException() 121 assertThrows( in uriHasPathComponent_throwsException() 144 assertThrows( in emptyTemplate_throwsException() 166 assertThrows( in templateContainsPlaceholderForUndefinedVar_throwsException() 178 assertThrows( in templateExpandsToInvalidUri_throwsException() 203 assertThrows( in templateExpandsToAppUri_throwsException()
|
D | ModuleGeneratorTest.java | 21 import static org.testng.Assert.assertThrows; 101 assertThrows(IllegalArgumentException.class, () -> generator.split()); in split_packageNameIsEmptyString_throwsError() 109 assertThrows(IllegalArgumentException.class, () -> generator.split()); in split_packageNameContainsPlaceholder_throwsError() 144 assertThrows(UncheckedIOException.class, () -> generator.split()); in split_packageNameProviderThrowsException_throwsException()
|