DeltaReport { public boolean isEmpty() { return allIssues.isEmpty(); } DeltaReport(final Report report, final History history, final int currentBuildNumber); boolean isEmpty(); String getReferenceBuildId(); Report getAllIssues(); Report getOutstandingIssues(); Report getNewIssues(); Report getFixedIssues(); IssuesStatistics getStatistics();  }
@Test void shouldHaveEmptyReports() { History history = mock(History.class); when(history.getBuild()).thenReturn(Optional.empty()); Report report = new Report(); DeltaReport deltaReport = new DeltaReport(report, history, 0); assertThat(deltaReport) .isEmpty() .hasNoAllIssues() .hasNoOutstandingIssues() .hasNoNewIssues() .hasNoFixedIssues() .hasReferenceBuildId(StringUtils.EMPTY); }