Skip to content

refactor: notification을 타입계층으로 리팩터링 #474

refactor: notification을 타입계층으로 리팩터링

refactor: notification을 타입계층으로 리팩터링 #474

GitHub Actions / Test Results failed Dec 28, 2024 in 0s

1 fail, 209 pass in 13s

 64 files  +2   64 suites  +2   13s ⏱️ ±0s
210 tests +2  209 ✅ +1  0 💤 ±0  1 ❌ +1 
211 runs  +2  210 ✅ +1  0 💤 ±0  1 ❌ +1 

Results for commit 2d4decd. ± Comparison against earlier commit deb422d.

Annotations

Check warning on line 0 in com.ody.notification.domain.types.DepartureReminderTest

See this annotation in the file changed.

@github-actions 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)