NotificationProcessorTest

3

tests

0

failures

0

ignored

0.183s

duration

100%

successful

Tests

Test Duration Result
logsEachSupportedStatusOnceAndSkipsDuplicateEvents(CapturedOutput) 0.073s passed
rejectsNotificationsMissingRequiredFields() 0.007s passed
rejectsUnsupportedEventTypes() 0.103s passed

Standard output

2026-10-22T10:47:19.885Z  INFO 3887 --- [    Test worker] c.c.g.e.n.NotificationProcessor          : Customer notification: orderId=1001, status=PAYMENT_FAILED
2026-10-22T10:47:19.887Z  INFO 3887 --- [    Test worker] c.c.g.e.n.NotificationProcessor          : Customer notification: orderId=1002, status=ORDER_CANCELLED, deliveryId=delivery-1
2026-10-22T10:47:19.888Z  INFO 3887 --- [    Test worker] c.c.g.e.n.NotificationProcessor          : Customer notification: orderId=1003, status=PICKED_UP, deliveryId=delivery-2
2026-10-22T10:47:19.888Z  INFO 3887 --- [    Test worker] c.c.g.e.n.NotificationProcessor          : Customer notification: orderId=1004, status=IN_TRANSIT, deliveryId=delivery-3
2026-10-22T10:47:19.890Z  INFO 3887 --- [    Test worker] c.c.g.e.n.NotificationProcessor          : Customer notification: orderId=1005, status=DELIVERED, deliveryId=delivery-4
2026-10-22T10:47:19.891Z  INFO 3887 --- [    Test worker] c.c.g.e.n.NotificationProcessor          : Customer notification: orderId=1006, status=DELIVERY_LOST, deliveryId=delivery-5
2026-10-22T10:47:19.891Z  INFO 3887 --- [    Test worker] c.c.g.e.n.NotificationProcessor          : Customer notification: orderId=1007, status=REFUND_PROCESSED, deliveryId=delivery-6
2026-10-22T10:47:19.892Z  INFO 3887 --- [    Test worker] c.c.g.e.n.NotificationProcessor          : Ignoring duplicate customer notification: eventId=evt-PAYMENT_FAILED