Searched refs:mockitoTestListener (Results 1 – 2 of 2) sorted by relevance
31 private MockitoTestListener mockitoTestListener; in DefaultInternalRunner()36 mockitoTestListener = listenerSupplier.get(); in DefaultInternalRunner()37 Mockito.framework().addListener(mockitoTestListener); in DefaultInternalRunner()58 if (!started && mockitoTestListener != null) { in DefaultInternalRunner()59 Mockito.framework().removeListener(mockitoTestListener); in DefaultInternalRunner()66 if (mockitoTestListener != null) { in DefaultInternalRunner()67 Mockito.framework().removeListener(mockitoTestListener); in DefaultInternalRunner()68 …mockitoTestListener.testFinished(new DefaultTestFinishedEvent(target, description.getMethodName(),… in DefaultInternalRunner()
25 private final MockitoTestListener mockitoTestListener = mock(MockitoTestListener.class); field in DefaultInternalRunnerTest28 return mockitoTestListener;39 verify(mockitoTestListener, only()).testFinished(any(TestFinishedEvent.class)); in does_not_fail_when_tests_succeeds()49 verify(mockitoTestListener, never()).testFinished(any(TestFinishedEvent.class)); in does_not_fail_second_test_when_first_test_fail()58 verify(mockitoTestListener, only()).testFinished(any(TestFinishedEvent.class)); in does_not_fail_second_test_when_first_test_fail()