Skip to content

Commit

Permalink
Merge pull request #1018 from puzzle/bug/1016_quick_fix_quarter_test
Browse files Browse the repository at this point in the history
#1016: quick fix shouldReturnCurrentQuarter
  • Loading branch information
clean-coder authored Sep 30, 2024
2 parents 1ffefc1 + 7054cd3 commit 2d4253e
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,14 @@ void shouldReturnCurrentQuarterFutureQuarterAnd4PastQuarters() {
void shouldReturnCurrentQuarter() {
Quarter quarter = quarterPersistenceService.getCurrentQuarter();

assertTrue(LocalDate.now().isAfter(quarter.getStartDate()));
assertTrue(LocalDate.now().isBefore(quarter.getEndDate()));
assertTrue(LocalDate.now().isEqual(quarter.getStartDate()) || //
LocalDate.now().isAfter(quarter.getStartDate()));

assertTrue(LocalDate.now().isEqual(quarter.getEndDate()) || //
LocalDate.now().isBefore(quarter.getEndDate()));

assertNotNull(quarter.getId());
assertNotNull(quarter.getLabel());
}

}

0 comments on commit 2d4253e

Please sign in to comment.