NotificationProcessorTest
Tests
| Test |
Duration |
Result |
| logsEachSupportedStatusOnceAndSkipsDuplicateEvents(CapturedOutput) |
0.094s |
passed |
| rejectsNotificationsMissingRequiredFields() |
0.011s |
passed |
| rejectsUnsupportedEventTypes() |
0.131s |
passed |
Standard output
2026-10-22T11:53:35.244Z INFO 3976 --- [ Test worker] c.c.g.e.n.NotificationProcessor : Customer notification: orderId=1001, status=PAYMENT_FAILED
2026-10-22T11:53:35.249Z INFO 3976 --- [ Test worker] c.c.g.e.n.NotificationProcessor : Customer notification: orderId=1002, status=ORDER_CANCELLED, deliveryId=delivery-1
2026-10-22T11:53:35.251Z INFO 3976 --- [ Test worker] c.c.g.e.n.NotificationProcessor : Customer notification: orderId=1003, status=PICKED_UP, deliveryId=delivery-2
2026-10-22T11:53:35.252Z INFO 3976 --- [ Test worker] c.c.g.e.n.NotificationProcessor : Customer notification: orderId=1004, status=IN_TRANSIT, deliveryId=delivery-3
2026-10-22T11:53:35.253Z INFO 3976 --- [ Test worker] c.c.g.e.n.NotificationProcessor : Customer notification: orderId=1005, status=DELIVERED, deliveryId=delivery-4
2026-10-22T11:53:35.254Z INFO 3976 --- [ Test worker] c.c.g.e.n.NotificationProcessor : Customer notification: orderId=1006, status=DELIVERY_LOST, deliveryId=delivery-5
2026-10-22T11:53:35.255Z INFO 3976 --- [ Test worker] c.c.g.e.n.NotificationProcessor : Customer notification: orderId=1007, status=REFUND_PROCESSED, deliveryId=delivery-6
2026-10-22T11:53:35.256Z INFO 3976 --- [ Test worker] c.c.g.e.n.NotificationProcessor : Ignoring duplicate customer notification: eventId=evt-PAYMENT_FAILED