Home
last modified time | relevance | path

Searched refs:runListener (Results 1 – 2 of 2) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/runners/
DDefaultInternalRunnerTest.java24 private final RunListener runListener = mock(RunListener.class); field in DefaultInternalRunnerTest
35 .run(newNotifier(runListener)); in does_not_fail_when_tests_succeeds()
37 verify(runListener, never()).testFailure(any(Failure.class)); in does_not_fail_when_tests_succeeds()
38 verify(runListener, times(1)).testFinished(any(Description.class)); in does_not_fail_when_tests_succeeds()
45 .run(newNotifier(runListener)); in does_not_fail_second_test_when_first_test_fail()
47 verify(runListener, times(1)).testFailure(any(Failure.class)); in does_not_fail_second_test_when_first_test_fail()
48 verify(runListener, never()).testFinished(any(Description.class)); in does_not_fail_second_test_when_first_test_fail()
51 reset(runListener); in does_not_fail_second_test_when_first_test_fail()
54 .run(newNotifier(runListener)); in does_not_fail_second_test_when_first_test_fail()
56 verify(runListener, never()).testFailure(any(Failure.class)); in does_not_fail_second_test_when_first_test_fail()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DRobolectricTestRunnerMultiApiTest.java40 private MyRunListener runListener; field in RobolectricTestRunnerMultiApiTest
51 runListener = new MyRunListener(); in setUp()
53 runNotifier.addListener(runListener); in setUp()
120 assertThat(runListener.ignored).isEmpty(); in noConfig()
121 assertThat(runListener.finished).hasSize(numSupportedApis); in noConfig()
131 assertThat(runListener.ignored).isEmpty(); in classConfigWithSdkGroup()
133 assertThat(runListener.finished).hasSize(2); in classConfigWithSdkGroup()
143 assertThat(runListener.ignored).isEmpty(); in methodConfigWithSdkGroup()
145 assertThat(runListener.finished).hasSize(2); in methodConfigWithSdkGroup()
155 assertThat(runListener.ignored).isEmpty(); in classConfigMinSdk()
[all …]