refactor: notification을 타입계층으로 리팩터링 #474
GitHub Actions / Test Results
failed
Dec 28, 2024 in 0s
1 fail, 209 pass in 13s
Annotations
Check warning on line 0 in com.ody.notification.domain.types.DepartureReminderTest
github-actions / Test Results
출발 알림 생성 시점이 알림 전송 시점보다 늦은 경우 즉시 전송된다 (com.ody.notification.domain.types.DepartureReminderTest) failed
/github/workspace/backend/build/test-results/test/TEST-com.ody.notification.domain.types.DepartureReminderTest.xml [took 0s]
Raw output
java.lang.NullPointerException: Cannot invoke "java.time.LocalDateTime.isBefore(java.time.chrono.ChronoLocalDateTime)" because "sendAt" is null
at com.ody.notification.domain.types.AbstractNotification.calculateSendAt(AbstractNotification.java:32)
at com.ody.notification.domain.types.AbstractNotification.<init>(AbstractNotification.java:28)
at com.ody.notification.domain.types.DepartureReminder.<init>(DepartureReminder.java:14)
at com.ody.notification.domain.types.DepartureReminderTest.sendImmediatelyIfDepartureTimeIsPast(DepartureReminderTest.java:32)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Loading