/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/s2/ |
D | S2SupportTest.java | 19 import static com.android.timezone.location.storage.testing.MoreAsserts.assertThrows; 31 assertThrows(IllegalArgumentException.class, () -> S2Support.cellIdToString(0)); in cellIdToString() 32 assertThrows(IllegalArgumentException.class, () -> S2Support.cellIdToString( in cellIdToString() 48 assertThrows(IllegalArgumentException.class, () -> S2Support.cellIdToString( in cellIdToString() 50 assertThrows(IllegalArgumentException.class, () -> S2Support.cellIdToString( in cellIdToString() 54 assertThrows(IllegalArgumentException.class, () -> S2Support.cellIdToString( in cellIdToString() 56 assertThrows(IllegalArgumentException.class, () -> S2Support.cellIdToString( in cellIdToString() 58 assertThrows(IllegalArgumentException.class, () -> S2Support.cellIdToString( in cellIdToString() 60 assertThrows(IllegalArgumentException.class, () -> S2Support.cellIdToString( in cellIdToString() 62 assertThrows(IllegalArgumentException.class, () -> S2Support.cellIdToString( in cellIdToString() [all …]
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/io/ |
D | TypedStreamsTest.java | 19 import static com.android.timezone.location.storage.testing.MoreAsserts.assertThrows; 146 assertThrows(IllegalArgumentException.class, in writeVarByteValueUnusedBitsCheck() 148 assertThrows(IllegalArgumentException.class, in writeVarByteValueUnusedBitsCheck() 151 assertThrows(IllegalArgumentException.class, in writeVarByteValueUnusedBitsCheck() 153 assertThrows(IllegalArgumentException.class, in writeVarByteValueUnusedBitsCheck() 156 assertThrows(IllegalArgumentException.class, in writeVarByteValueUnusedBitsCheck() 158 assertThrows(IllegalArgumentException.class, in writeVarByteValueUnusedBitsCheck() 161 assertThrows(IllegalArgumentException.class, in writeVarByteValueUnusedBitsCheck() 163 assertThrows(IllegalArgumentException.class, in writeVarByteValueUnusedBitsCheck() 166 assertThrows(IllegalArgumentException.class, in writeVarByteValueUnusedBitsCheck() [all …]
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/util/ |
D | BitwiseUtilsTest.java | 19 import static com.android.timezone.location.storage.testing.MoreAsserts.assertThrows; 30 assertThrows(IllegalArgumentException.class, () -> BitwiseUtils.maxUnsignedValue(0)); in maxUnsignedValue() 31 assertThrows(IllegalArgumentException.class, () -> BitwiseUtils.maxUnsignedValue(64)); in maxUnsignedValue() 42 assertThrows(IllegalArgumentException.class, () -> BitwiseUtils.getLowBitsMask(-1)); in getLowBitsMask() 43 assertThrows(IllegalArgumentException.class, () -> BitwiseUtils.getLowBitsMask(65)); in getLowBitsMask() 54 assertThrows(IllegalArgumentException.class, () -> BitwiseUtils.getMidBitsMask(0, 1)); in getMidBitsMask() 55 assertThrows(IllegalArgumentException.class, () -> BitwiseUtils.getMidBitsMask(65, 1)); in getMidBitsMask() 56 assertThrows(IllegalArgumentException.class, () -> BitwiseUtils.getMidBitsMask(64, 65)); in getMidBitsMask() 57 assertThrows(IllegalArgumentException.class, () -> BitwiseUtils.getMidBitsMask(16, 17)); in getMidBitsMask() 148 assertThrows(IllegalArgumentException.class, () -> BitwiseUtils.getHighBitsMask(65)); in getHighBitMask() [all …]
|
D | ConditionsTest.java | 19 import static com.android.timezone.location.storage.testing.MoreAsserts.assertThrows; 36 assertThrows(IllegalStateException.class, in checkStateInRange() 54 assertThrows(IllegalArgumentException.class, in checkArgInRange() 57 assertThrows(IllegalArgumentException.class, in checkArgInRange()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarPropertyManagerTest.java | 22 import static org.testng.Assert.assertThrows; 270 assertThrows(CarInternalErrorException.class, in testGetIntArrayPropertyWithErrorStatusAfterR() 285 assertThrows(PropertyNotAvailableException.class, in testGetIntPropertyWithUnavailableStatusAfterR() 300 assertThrows(CarInternalErrorException.class, in testGetBooleanPropertyWithErrorStatusAfterR() 314 assertThrows(PropertyNotAvailableException.class, in testGetFloatPropertyWithUnavailableStatusAfterR() 378 assertThrows(IllegalArgumentException.class, () -> mManager.getAreaId( in testGetAreaId() 380 assertThrows(IllegalArgumentException.class, () -> mManager.getAreaId(FAKE_PROPERTY_ID, in testGetAreaId() 392 assertThrows(IllegalStateException.class, callback::assertOnChangeEventCalled); in testRegisterPropertyUnavailable() 450 assertThrows(IllegalStateException.class, in testSetterExceptionsInQ() 453 assertThrows(IllegalStateException.class, in testSetterExceptionsInQ() [all …]
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/tzs2range/ |
D | SuffixTableBlockTest.java | 19 import static com.android.timezone.location.storage.testing.MoreAsserts.assertThrows; 59 assertThrows(IllegalStateException.class, suffixTableWriter::close); in writer_createPopulatedBlockWriter_noEntriesThrows() 84 assertThrows(IllegalArgumentException.class, in writer_createPopulatedBlockWriter_addRange() 90 assertThrows(IllegalArgumentException.class, in writer_createPopulatedBlockWriter_addRange() 122 assertThrows(IllegalArgumentException.class, in writer_createPopulatedBlockWriter_rejectOverlappingRanges() 132 assertThrows(IllegalArgumentException.class, in writer_createPopulatedBlockWriter_rejectOverlappingRanges() 134 assertThrows(IllegalArgumentException.class, in writer_createPopulatedBlockWriter_rejectOverlappingRanges() 136 assertThrows(IllegalArgumentException.class, in writer_createPopulatedBlockWriter_rejectOverlappingRanges() 146 assertThrows(IllegalArgumentException.class, in writer_createPopulatedBlockWriter_rejectOverlappingRanges() 149 assertThrows(IllegalArgumentException.class, in writer_createPopulatedBlockWriter_rejectOverlappingRanges() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/ |
D | UserHalHelperTest.java | 43 import static org.testng.Assert.assertThrows; 113 assertThrows(IllegalArgumentException.class, in testParseInitialUserInfoRequestType_invalid() 119 assertThrows(IllegalArgumentException.class, () -> UserHalHelper.convertFlags(null)); in testConvertFlags_nullUser() 148 assertThrows(IllegalArgumentException.class, () -> UserHalHelper.getFlags(null, 10)); in testGetFlags_nullUserManager() 154 assertThrows(IllegalArgumentException.class, () -> UserHalHelper.getFlags(mUm, 10)); in testGetFlags_noUser() 293 assertThrows(NullPointerException.class, () -> UserHalHelper.addUsersInfo(null, infos)); in testAddUsersInfo_nullProp() 302 assertThrows(NullPointerException.class, () -> in testAddUsersInfo_nullCurrentUser() 315 assertThrows(IllegalArgumentException.class, () -> in testAddUsersInfo_mismatchNumberUsers() 346 assertThrows(NullPointerException.class, () -> UserHalHelper.addUserInfo(null, userInfo)); in testAddUserInfo_nullProp() 353 assertThrows(NullPointerException.class, () -> UserHalHelper.addUserInfo(prop, null)); in testAddUserInfo_nullCurrentUser() [all …]
|
D | UserHelperTest.java | 24 import static org.testng.Assert.assertThrows; 76 assertThrows(IllegalArgumentException.class, in testDefaultNonAdminRestrictions_nullContext_throwsException() 83 assertThrows(IllegalArgumentException.class, in testDefaultNonAdminRestrictions_nullUser_throwsException() 103 assertThrows(IllegalArgumentException.class, in testAssignDefaultIcon_nullContext_throwsException() 109 assertThrows(IllegalArgumentException.class, in testAssignDefaultIcon_nullUser_throwsException()
|
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/ |
D | CarPublicPermissionTest.java | 18 import static org.testng.Assert.assertThrows; 51 assertThrows(SecurityException.class, () -> mCar.getCarManager( in testGetCarManagerPermissions() 53 assertThrows(SecurityException.class, () -> mCar.getCarManager( in testGetCarManagerPermissions() 55 assertThrows(SecurityException.class, () -> mCar.getCarManager(Car.CAR_NAVIGATION_SERVICE)); in testGetCarManagerPermissions() 57 assertThrows(SecurityException.class, () -> mCar.getCarManager(Car.DIAGNOSTIC_SERVICE)); in testGetCarManagerPermissions() 60 assertThrows(SecurityException.class, () -> mCar.getCarManager( in testGetCarManagerPermissions() 63 assertThrows(SecurityException.class, () -> mCar.getCarManager(Car.TEST_SERVICE)); in testGetCarManagerPermissions() 65 assertThrows(SecurityException.class, () -> mCar.getCarManager( in testGetCarManagerPermissions()
|
D | CarPermisisonTest.java | 18 import static org.testng.Assert.assertThrows; 51 assertThrows(SecurityException.class, () -> mCar.enableFeature("some feature")); in testEnableFeaturePermission() 56 assertThrows(SecurityException.class, () -> mCar.disableFeature("some feature")); in testDisableFeaturePermission() 61 assertThrows(SecurityException.class, () -> mCar.getAllEnabledFeatures()); in testGetAllEnabledFeaturesPermission() 66 assertThrows(SecurityException.class, () -> mCar.getAllPendingDisabledFeatures()); in testGetAllPendingDisabledFeaturesPermission() 71 assertThrows(SecurityException.class, () -> mCar.getAllPendingEnabledFeatures()); in testGetAllPendingEnabledFeaturesPermission()
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | SimPhonebookProviderTest.java | 24 import static com.android.internal.telephony.testing.TelephonyAssertions.assertThrows; 163 assertThrows(IllegalArgumentException.class, () -> in query_entityFiles_unrecognizedColumn_throwsIllegalArgumentException() 469 IllegalArgumentException e = assertThrows(IllegalArgumentException.class, in query_adnRecords_nonExistentSim_throwsCorrectException() 481 IllegalArgumentException e = assertThrows(IllegalArgumentException.class, in insert_nonExistentSim_throwsCorrectException() 493 IllegalArgumentException e = assertThrows(IllegalArgumentException.class, in update_nonExistentSim_throwsCorrectException() 502 IllegalArgumentException e = assertThrows(IllegalArgumentException.class, in delete_nonExistentSim_throwsCorrectException() 512 IllegalArgumentException e = assertThrows(IllegalArgumentException.class, in query_adnRecords_zeroSizeEf_throwsCorrectException() 621 assertThrows(IllegalArgumentException.class, () -> in query_invalidItemIndex_throwsIllegalArgumentException() 624 assertThrows(IllegalArgumentException.class, () -> in query_invalidItemIndex_throwsIllegalArgumentException() 627 assertThrows(IllegalArgumentException.class, () -> in query_invalidItemIndex_throwsIllegalArgumentException() [all …]
|
D | CarrierConfigLoaderTest.java | 23 import static org.junit.Assert.assertThrows; 146 assertThrows(SecurityException.class, in testUpdateConfigForPhoneId_noPermission() 159 assertThrows(IllegalArgumentException.class, in testUpdateConfigForPhoneId_invalidPhoneId() 230 assertThrows(SecurityException.class, in testOverrideConfig_noPermission() 242 assertThrows(IllegalArgumentException.class, () -> mCarrierConfigLoader.overrideConfig( in testOverrideConfig_invalidSubId() 298 assertThrows(IllegalArgumentException.class, in testNotifyConfigChangedForSubId_invalidSubId() 314 assertThrows(SecurityException.class, in testNotifyConfigChangedForSubId_noPermission() 324 assertThrows(SecurityException.class, in testGetDefaultCarrierServicePackageName_noPermission()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | VoicemailProviderTest.java | 375 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in assertBaseUriThrowsSecurityExceptions() 382 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in assertBaseUriThrowsSecurityExceptions() 389 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in assertBaseUriThrowsSecurityExceptions() 396 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in assertBaseUriThrowsSecurityExceptions() 425 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in testPermissions_InsertAndQuery() 438 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in assertOnlyOwnVoicemailsCanBeQueriedAndInserted() 488 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in assertOnlyOwnVoicemailsCanBeUpdatedAndDeleted() 494 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in assertOnlyOwnVoicemailsCanBeUpdatedAndDeleted() 586 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in checkHasNoReadAccessToUri() 592 EvenMoreAsserts.assertThrows(SecurityException.class, new Runnable() { in checkHasNoReadAccessToUri() [all …]
|
D | SqlInjectionDetectionTest.java | 19 import static com.android.providers.contacts.EvenMoreAsserts.assertThrows; 124 assertThrows(IllegalArgumentException.class, () -> { in assertQueryThrows() 131 assertThrows(IllegalArgumentException.class, () -> { in testBadDelete() 135 assertThrows(IllegalArgumentException.class, () -> { in testBadDelete() 142 assertThrows(IllegalArgumentException.class, () -> { in testBadUpdate() 146 assertThrows(IllegalArgumentException.class, () -> { in testBadUpdate() 149 assertThrows(IllegalArgumentException.class, () -> { in testBadUpdate() 159 assertThrows(IllegalArgumentException.class, () -> { in testBadInsert()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | UserHalServiceTest.java | 46 import static org.testng.Assert.assertThrows; 273 assertThrows(IllegalStateException.class, () -> myHalService.getInitialUserInfo(COLD_BOOT, in testGetUserInfo_noHalSupported() 279 assertThrows(IllegalArgumentException.class, () -> in testGetUserInfo_invalidTimeout() 281 assertThrows(IllegalArgumentException.class, () -> in testGetUserInfo_invalidTimeout() 287 assertThrows(NullPointerException.class, () -> mUserHalService.getInitialUserInfo(COLD_BOOT, in testGetUserInfo_noUsersInfo() 293 assertThrows(NullPointerException.class, in testGetUserInfo_noCallback() 493 assertThrows(IllegalStateException.class, in testSwitchUser_noHalSupported() 500 assertThrows(IllegalArgumentException.class, () -> mUserHalService in testSwitchUser_invalidTimeout() 502 assertThrows(IllegalArgumentException.class, () -> mUserHalService in testSwitchUser_invalidTimeout() 508 assertThrows(IllegalArgumentException.class, () -> mUserHalService in testSwitchUser_noUsersInfo() [all …]
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/table/packed/ |
D | IntValuePackedTableTest.java | 19 import static com.android.timezone.location.storage.testing.MoreAsserts.assertThrows; 66 assertThrows(IllegalArgumentException.class, in valueSizeMax_unsigned() 68 assertThrows(IllegalArgumentException.class, in valueSizeMax_unsigned() 89 assertThrows(IllegalArgumentException.class, in valueSizeMax_signed() 91 assertThrows(IllegalArgumentException.class, in valueSizeMax_signed() 112 assertThrows(IllegalArgumentException.class, () -> writer.addEntry(1, 2)); in addEntry_outOfOrder() 113 assertThrows(IllegalArgumentException.class, () -> writer.addEntry(99, 2)); in addEntry_outOfOrder() 175 assertThrows(IndexOutOfBoundsException.class, in getEntryByIndex() 177 assertThrows(IndexOutOfBoundsException.class, () -> intValuePackedTable.getEntryByIndex(3)); in getEntryByIndex() 228 assertThrows(IllegalArgumentException.class, in getEntry_badKey() [all …]
|
D | PackedTableReaderWriterTest.java | 19 import static com.android.timezone.location.storage.testing.MoreAsserts.assertThrows; 138 assertThrows(IllegalStateException.class, () -> tableReader.getEntry(maxKey).getIntValue()); in entryGetValue_long() 141 assertThrows(IllegalStateException.class, () -> tableReader.getEntry(minKey).getIntValue()); in entryGetValue_long() 155 assertThrows(IllegalArgumentException.class, () -> writer.addEntry(1, maxUnsignedInt + 1)); in valueSizeMax_unsigned() 156 assertThrows(IllegalArgumentException.class, () -> writer.addEntry(1, minUnsignedInt - 1)); in valueSizeMax_unsigned() 179 assertThrows(IllegalArgumentException.class, () -> writer.addEntry(1, maxSignedInt + 1)); in valueSizeMax_signed() 180 assertThrows(IllegalArgumentException.class, () -> writer.addEntry(1, minSignedInt - 1)); in valueSizeMax_signed() 200 assertThrows(IllegalArgumentException.class, () -> writer.addEntry(1, 2)); in addEntry_outOfOrder() 201 assertThrows(IllegalArgumentException.class, () -> writer.addEntry(99, 2)); in addEntry_outOfOrder() 293 assertThrows(IllegalArgumentException.class, () -> tableReader.getEntry(negativeKey)); in getEntry_badKey() [all …]
|
/packages/modules/ExtServices/java/tests/src/android/ext/services/autofill/ |
D | CreditCardMatcherTest.java | 25 import static org.testng.Assert.assertThrows; 57 assertThrows(IllegalArgumentException.class, () -> calculateScore( in testCalculateScore_BadBundle() 63 assertThrows(IllegalArgumentException.class, () -> calculateScore( in testCalculateScore_BadBundle() 69 assertThrows(IllegalArgumentException.class, () -> calculateScore( in testCalculateScore_BadBundle() 75 assertThrows(IllegalArgumentException.class, () -> calculateScore( in testCalculateScore_BadBundle() 82 assertThrows(IllegalArgumentException.class, () -> calculateScore( in testCalculateScore_BadBundle()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserManagerUnitTest.java | 34 import static org.testng.Assert.assertThrows; 167 assertThrows(NullPointerException.class, () -> mMgr.addListener(null, (e) -> { })); in testAddListener_nullExecutor() 172 assertThrows(NullPointerException.class, () -> mMgr.addListener(Runnable::run, null)); in testAddListener_nullListener() 180 assertThrows(IllegalStateException.class, () -> mMgr.addListener(Runnable::run, listener)); in testAddListener_sameListenerAddedTwice() 191 assertThrows(NullPointerException.class, () -> mMgr.removeListener(null)); in testRemoveListener_nullListener() 198 assertThrows(IllegalStateException.class, () -> mMgr.removeListener(listener)); in testRemoveListener_notAddedBefore() 209 assertThrows(IllegalStateException.class, () -> mMgr.removeListener(listener)); in testRemoveListener_addAndRemove() 288 assertThrows(IllegalArgumentException.class, () -> mMgr.setUserSwitchUiCallback(null)); in testSetSwitchUserUICallback_nullCallback() 424 assertThrows(IllegalArgumentException.class, in testGetUserIdentificationAssociation_nullTypes() 430 assertThrows(IllegalArgumentException.class, in testGetUserIdentificationAssociation_emptyTypes() [all …]
|
D | UserIdentificationAssociationResponseTest.java | 23 import static org.testng.Assert.assertThrows; 53 assertThrows(IllegalArgumentException.class, () -> forSuccess(null)); in testSuccess_nullValues() 58 assertThrows(IllegalArgumentException.class, () -> forSuccess(null, "D'OH!")); in testSuccess_nullValuesWithMessage() 63 assertThrows(IllegalArgumentException.class, () -> forSuccess(new int[0])); in testSuccess_emptyValues() 68 assertThrows(IllegalArgumentException.class, () -> forSuccess(new int[0], "D'OH!")); in testSuccess_emptyValuesWithMessage()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioDeviceInfoTest.java | 26 import static org.junit.Assert.assertThrows; 53 assertThrows(NullPointerException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresNonNullGain() 62 assertThrows(NullPointerException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresJointModeGain() 71 assertThrows(IllegalArgumentException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresMaxGainLargerThanMin() 81 assertThrows(IllegalArgumentException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresDefaultGainLargerThanMin() 91 assertThrows(IllegalArgumentException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresDefaultGainSmallerThanMax() 100 assertThrows(IllegalArgumentException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresGainStepSizeFactorOfRange() 109 assertThrows(IllegalArgumentException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresGainStepSizeFactorOfRangeToDefault()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUxRestrictionsConfigurationTest.java | 31 import static org.testng.Assert.assertThrows; 130 assertThrows(Exception.class, () -> builder.build()); in testBuilderValidation_NonMovingStateHasOneRestriction() 144 assertThrows(Exception.class, () -> builder.build()); in testBuilderValidation_PassengerModeNoSpeedRangeOverlap() 170 assertThrows(Exception.class, () -> builder.build()); in testBuilderValidation_MultipleSpeedRange_NonZeroStart() 179 assertThrows(Exception.class, () -> builder.build()); in testBuilderValidation_SpeedRange_NonZeroStart() 191 assertThrows(Exception.class, () -> builder.build()); in testBuilderValidation_SpeedRange_Overlap() 203 assertThrows(Exception.class, () -> builder.build()); in testBuilderValidation_SpeedRange_Gap() 209 assertThrows(Exception.class, () -> builder.setUxRestrictions(DRIVING_STATE_PARKED, in testBuilderValidation_NonMovingStateCannotUseSpeedRange() 223 assertThrows(Exception.class, () -> builder.build()); in testBuilderValidation_MultipleMovingRestrictionsShouldAllContainSpeedRange() 235 assertThrows(Exception.class, () -> new Builder.SpeedRange(-2f, 1f)); in testSpeedRange_NoNegativeMin() [all …]
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/tzs2range/write/ |
D | PushBackIteratorTest.java | 19 import static com.android.timezone.location.storage.testing.MoreAsserts.assertThrows; 66 assertThrows(NoSuchElementException.class, iterator::next); in test() 80 assertThrows(UnsupportedOperationException.class, iterator::remove); in removeNotSupported() 85 assertThrows(UnsupportedOperationException.class, iterator::remove); in removeNotSupported() 88 assertThrows(UnsupportedOperationException.class, iterator::remove); in removeNotSupported()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
D | CarWatchdogServiceUnitTest.java | 33 import static org.junit.Assert.assertThrows; 258 assertThrows(IllegalArgumentException.class, in testFailsGetResourceOveruseStatsWithInvalidArgs() 262 assertThrows(IllegalArgumentException.class, in testFailsGetResourceOveruseStatsWithInvalidArgs() 305 assertThrows(IllegalArgumentException.class, in testFailsGetAllResourceOveruseStatsWithInvalidArgs() 309 assertThrows(IllegalArgumentException.class, in testFailsGetAllResourceOveruseStatsWithInvalidArgs() 316 assertThrows(IllegalArgumentException.class, in testFailsGetAllResourceOveruseStatsWithInvalidArgs() 321 assertThrows(IllegalArgumentException.class, in testFailsGetAllResourceOveruseStatsWithInvalidArgs() 399 assertThrows(NullPointerException.class, in testFailsGetResourceOveruseStatsForUserPackageWithInvalidArgs() 405 assertThrows(NullPointerException.class, in testFailsGetResourceOveruseStatsForUserPackageWithInvalidArgs() 410 assertThrows(IllegalArgumentException.class, in testFailsGetResourceOveruseStatsForUserPackageWithInvalidArgs() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/testapi/ |
D | BlockingUserLifecycleListenerTest.java | 30 import static org.testng.Assert.assertThrows; 59 assertThrows(IllegalStateException.class, () -> builder.forUser(10)); in testListener_forAnyEvent_invalidBuilderMethods() 60 assertThrows(IllegalStateException.class, () -> builder.forPreviousUser(10)); in testListener_forAnyEvent_invalidBuilderMethods() 61 assertThrows(IllegalStateException.class, in testListener_forAnyEvent_invalidBuilderMethods() 70 assertThrows(IllegalStateException.class, () -> listener.waitForEvents()); in testForAnyEvent_invalidMethods() 71 assertThrows(IllegalStateException.class, () -> listener.getAllReceivedEvents()); in testForAnyEvent_invalidMethods() 79 assertThrows(IllegalStateException.class, () -> listener.waitForAnyEvent()); in testForAnyEvent_timesout() 97 assertThrows(IllegalStateException.class, () -> listener.waitForAnyEvent()); in testForSpecificEvents_invalidMethods()
|