@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); }
public boolean isEmpty() { return allIssues.isEmpty(); }
DeltaReport { public boolean isEmpty() { return allIssues.isEmpty(); } }
DeltaReport { public boolean isEmpty() { return allIssues.isEmpty(); } DeltaReport(final Report report, final History history, final int currentBuildNumber); }
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(); }
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();  }