@Test public void failedCheck() { SimpleTreeReporter reporter = checksCountLimitingReporter(next, 1); reporter.failedCheck("1", "3"); verify(next).failedCheck("1", "3"); verifyNoMoreInteractions(next); reporter.failedCheck("2", "4"); verifyNoMoreInteractions(next); }
@Test public void passedCheck() { SimpleTreeReporter reporter = checksCountLimitingReporter(next, 1); reporter.passedCheck("1"); verify(next).passedCheck("1"); verifyNoMoreInteractions(next); reporter.passedCheck("2"); verifyNoMoreInteractions(next); }
@Test public void brokenCheck() { SimpleTreeReporter reporter = checksCountLimitingReporter(next, 1); reporter.brokenCheck("1", throwable); verify(next).brokenCheck("1", throwable); verifyNoMoreInteractions(next); reporter.brokenCheck("2", throwable); verifyNoMoreInteractions(next); }
@Test public void incorrectlyAbsent() { SimpleTreeReporter reporter = checksCountLimitingReporter(next, 1); reporter.incorrectlyAbsent(); verify(next).incorrectlyAbsent(); verifyNoMoreInteractions(next); reporter.incorrectlyAbsent(); verifyNoMoreInteractions(next); }
@Test public void checkForAbsentItem() { SimpleTreeReporter reporter = checksCountLimitingReporter(next, 1); reporter.checkForAbsentItem("1"); verify(next).checkForAbsentItem("1"); verifyNoMoreInteractions(next); reporter.checkForAbsentItem("2"); verifyNoMoreInteractions(next); }