Searched refs:failureCaptor (Results 1 – 4 of 4) sorted by relevance
272 ArgumentCaptor<Failure> failureCaptor = ArgumentCaptor.forClass(Failure.class); in testTimestampScheduling_respectsSuiteTimeout() local291 verify(mRunNotifier, atLeastOnce()).fireTestFailure(failureCaptor.capture()); in testTimestampScheduling_respectsSuiteTimeout()292 List<Failure> failures = failureCaptor.getAllValues(); in testTimestampScheduling_respectsSuiteTimeout()489 ArgumentCaptor<Failure> failureCaptor = ArgumentCaptor.forClass(Failure.class); in verifyForAssertionFailures()490 verify(notifier, atLeastOnce()).fireTestFailure(failureCaptor.capture()); in verifyForAssertionFailures()491 List<Failure> failures = failureCaptor.getAllValues(); in verifyForAssertionFailures()
89 ArgumentCaptor<Failure> failureCaptor = ArgumentCaptor.forClass(Failure.class); in testOverTimeTest_throwsTestTimedOutException() local108 verify(mRunNotifier, atLeastOnce()).fireTestFailure(failureCaptor.capture()); in testOverTimeTest_throwsTestTimedOutException()109 List<Failure> failures = failureCaptor.getAllValues(); in testOverTimeTest_throwsTestTimedOutException()
568 ArgumentCaptor<Failure> failureCaptor = ArgumentCaptor.forClass(Failure.class); in verifyForAssertionFailures()569 verify(notifier, atLeastOnce()).fireTestFailure(failureCaptor.capture()); in verifyForAssertionFailures()570 List<Failure> failures = failureCaptor.getAllValues(); in verifyForAssertionFailures()
281 ArgumentCaptor<Failure> failureCaptor = ArgumentCaptor.forClass(Failure.class); in testStopsEarly_ifBatteryLevelIsBelowThreshold() local282 verify(notifier).fireTestFailure(failureCaptor.capture()); in testStopsEarly_ifBatteryLevelIsBelowThreshold()284 Failure failure = failureCaptor.getValue(); in testStopsEarly_ifBatteryLevelIsBelowThreshold()308 ArgumentCaptor<Failure> failureCaptor = ArgumentCaptor.forClass(Failure.class); in testStopsEarly_ifBatteryDrainIsAboveThreshold() local309 verify(notifier).fireTestFailure(failureCaptor.capture()); in testStopsEarly_ifBatteryDrainIsAboveThreshold()311 Failure failure = failureCaptor.getValue(); in testStopsEarly_ifBatteryDrainIsAboveThreshold()