Home
last modified time | relevance | path

Searched refs:expectedException (Results 1 – 5 of 5) sorted by relevance

/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DDynamicRuleChainTest.java63 @Rule public ExpectedException expectedException = ExpectedException.none(); field in DynamicRuleChainTest
83 expectedException.expectMessage("Test failed"); in testRuleCallbacks()
102 expectedException.expectMessage( in testThrowsOnNonexistentSimpleClassName()
112 expectedException.expectMessage( in testThrowsOnNonexistentFullyQualifiedClassName()
140 expectedException.expectMessage( in testInvalidRuleNameInMultipleRulesAlsoThrows()
211 expectedException.expectMessage(String.format("null or empty")); in testRulesOptionNameOverrideWithNullThrows()
221 expectedException.expectMessage(String.format("null or empty")); in testRulesOptionNameOverrideWithEmptyThrows()
DKillAppsOnFailureRuleTest.java51 @Rule public ExpectedException expectedException = ExpectedException.none(); field in KillAppsOnFailureRuleTest
56 expectedException.expectMessage(EXCEPTION_MESSAGE); in testDefaultDoesNothing()
66 expectedException.expectMessage(EXCEPTION_MESSAGE); in testKillsSpecifiedApp()
76 expectedException.expectMessage(EXCEPTION_MESSAGE); in testKillsSpecifiedApps()
DTestMetricRuleTest.java66 @Rule public ExpectedException expectedException = ExpectedException.none(); field in TestMetricRuleTest
96 expectedException.expectMessage(TEST_FAILURE_MESSAGE); in testValidListener_testFails()
122 expectedException.expectMessage(TEST_FAILURE_MESSAGE); in testMultipleListeners_allValid()
162 expectedException.expectMessage(TEST_FAILURE_MESSAGE); in testMultipleListeners_lifoOrder()
192 expectedException.expectMessage( in testInvalidListenerNameThrows()
208 expectedException.expectMessage( in testSimpleClassNameAttemptedWithKnownPackage()
DDex2oatPressureRuleTest.java62 @Rule public ExpectedException expectedException = ExpectedException.none(); field in Dex2oatPressureRuleTest
220 expectedException.expectMessage("dex2oat still isn't running"); in testCancelsAndThrowsIfDex2oatIsNotRunningAfterTimeout()
253 expectedException.expectMessage("Invalid compilation filter"); in testInvalidCompilationFilterThrows()
271 expectedException.expectMessage(packages.get(1)); in testInvalidPackageThrows()
272 expectedException.expectMessage("not installed"); in testInvalidPackageThrows()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/junit/
DLegacyFlickerDecoratorTest.kt204 expectedExceptions.forEachIndexed { idx, expectedException -> in <lambda>() method
209 .contains(expectedException) in <lambda>()