Skip to content

Commit

Permalink
Remove deprecated testcase in DashboardDataTest
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-ny committed Apr 14, 2024
1 parent d8e2257 commit 8c48cbe
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/test/java/seedu/address/model/analytics/DashboardDataTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@ public void constructor_null_throwsNullPointerException() {
new BigDecimal("100"), new Date()));
}

@Test
public void constructor_overdueReturnDate_throwsIllegalArgumentException() {
Analytics analytics = Analytics.getAnalytics(new UniqueLoanList().asUnmodifiableObservableList());
// Earliest return date in whole database is earlier than now
// Loan is overdue and should not be considered
Date oneDayBeforeNow = new Date(new Date().getTime() - 86400000);
assertThrows(IllegalArgumentException.class, () -> new DashboardData(analytics,
new BigDecimal("100"), oneDayBeforeNow));
}

@Test
public void urgencyTest() {
Date oneWeekAfterNow = new Date(new Date().getTime() + 604800000);
Expand Down

0 comments on commit 8c48cbe

Please sign in to comment.