Searched refs:expectedException (Results 1 – 5 of 5) sorted by relevance
63 @Rule public ExpectedException expectedException = ExpectedException.none(); field in DynamicRuleChainTest83 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()
51 @Rule public ExpectedException expectedException = ExpectedException.none(); field in KillAppsOnFailureRuleTest56 expectedException.expectMessage(EXCEPTION_MESSAGE); in testDefaultDoesNothing()66 expectedException.expectMessage(EXCEPTION_MESSAGE); in testKillsSpecifiedApp()76 expectedException.expectMessage(EXCEPTION_MESSAGE); in testKillsSpecifiedApps()
66 @Rule public ExpectedException expectedException = ExpectedException.none(); field in TestMetricRuleTest96 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()
62 @Rule public ExpectedException expectedException = ExpectedException.none(); field in Dex2oatPressureRuleTest220 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()
204 expectedExceptions.forEachIndexed { idx, expectedException -> in <lambda>() method209 .contains(expectedException) in <lambda>()