Skip to content

Commit f0dec47

Browse files
Add expireThreshold param in integration test
Update ApplicationRepositoryIT to pass an expireThreshold to findOverdueByUserId. The test now sets expireThreshold = now().minusDays(7) and calls the repository method with both threshold and expireThreshold to match the updated repository signature and ensure expired records are excluded.
1 parent 2723cce commit f0dec47

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/com/jobtracker/integration/ApplicationRepositoryIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ void findOverdueByUserId_shouldReturnDmRemindersAfter6Hours() {
8686
applicationRepository.save(app);
8787

8888
var threshold = LocalDateTime.now().plusHours(1);
89-
var results = applicationRepository.findOverdueByUserId(user.getId(), threshold);
89+
var expireThreshold = LocalDateTime.now().minusDays(7);
90+
var results = applicationRepository.findOverdueByUserId(user.getId(), threshold, expireThreshold);
9091
assertThat(results).hasSize(1);
9192
assertThat(results.get(0).getVacancyName()).isEqualTo("Overdue");
9293
}

0 commit comments

Comments
 (0)