### Question:
PathListReportExecutor implements ReportExecutor { @Override public void setPage(final int page) { if (page <= 0) { this.currentPage = 0; } else { this.currentPage = page; } }  @Override String getDetails(); @Override String getParameters(); @Override ResultsPage getAllResults(); @Override ResultsPage getResults(); @Override void setConfiguration(final Resource config); @Override void setPage(final int page);  }### Answer:
@Test public void testSetPageReturnsZeroWhenNonPositiveNumberProvided() { PathListReportExecutor executor = new PathListReportExecutor(); executor.setPage(0); assertEquals(0, executor.currentPage); executor.setPage(-2); assertEquals(0, executor.currentPage); executor.setPage(-5); assertEquals(0, executor.currentPage); executor.setPage(-100); assertEquals(0, executor.currentPage); }