|
|
@ -190,7 +190,7 @@ class CareerProgressServiceTest { |
|
|
anyLong(), anyCollection(), anyString())).thenReturn(List.of(s1, s2)); |
|
|
anyLong(), anyCollection(), anyString())).thenReturn(List.of(s1, s2)); |
|
|
|
|
|
|
|
|
// Offer:一条 SENT 有效 + 一条 DRAFT(不应返回 DRAFT)
|
|
|
// Offer:一条 SENT 有效 + 一条 DRAFT(不应返回 DRAFT)
|
|
|
Offer sent = offer(14L, app.getId(), "SENT", "2026-09-05T23:59:59"); |
|
|
Offer sent = offer(14L, app.getId(), "SENT", LocalDateTime.now().plusDays(1).withNano(0).toString()); |
|
|
when(offerRepository.findByCandidateIdAndStatusNotOrderByCreatedAtDesc(anyLong(), anyString())) |
|
|
when(offerRepository.findByCandidateIdAndStatusNotOrderByCreatedAtDesc(anyLong(), anyString())) |
|
|
.thenReturn(List.of(sent)); |
|
|
.thenReturn(List.of(sent)); |
|
|
|
|
|
|
|
|
|