EmailNotificationIntegrationTest
Tests
| Test |
Duration |
Result |
| consumesAllNotificationStatusesAndIgnoresRedelivery() |
1.168s |
passed |
| invalidNotificationIsSentToDeadLetterQueue() |
3.066s |
passed |
| queuedMessagesAreProcessedAfterListenerRestarts() |
1.188s |
passed |
Standard output
11:53:17.932 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [com.comp5348.group06.email.notification.EmailNotificationIntegrationTest]: EmailNotificationIntegrationTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
11:53:18.137 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration com.comp5348.group06.email.EmailApplication for test class com.comp5348.group06.email.notification.EmailNotificationIntegrationTest
11:53:18.246 [Test worker] INFO tc.rabbitmq:3.13-management -- Creating container for image: rabbitmq:3.13-management
11:53:18.264 [Test worker] INFO tc.rabbitmq:3.13-management -- Container rabbitmq:3.13-management is starting: 99bfac80e8843023b0ae27792c4ebb8f2f362b80981d163e76e477c2255573b0
11:53:23.836 [Test worker] INFO tc.rabbitmq:3.13-management -- Container rabbitmq:3.13-management started in PT5.589879977S
11:53:23.837 [Test worker] INFO tc.postgres:16 -- Creating container for image: postgres:16
11:53:23.862 [Test worker] INFO tc.postgres:16 -- Container postgres:16 is starting: e8ced6a87abeb5fd66520f6b4d295c12404cf7051d78fa950d0e6908b0f73cf7
11:53:24.791 [Test worker] INFO tc.postgres:16 -- Container postgres:16 started in PT0.953645581S
11:53:24.792 [Test worker] INFO tc.postgres:16 -- Container is started (JDBC URL: jdbc:postgresql://localhost:32782/test?loggerLevel=OFF)
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.3.3)
2026-10-22T11:53:25.252Z INFO 3976 --- [ Test worker] c.g.e.n.EmailNotificationIntegrationTest : Starting EmailNotificationIntegrationTest using Java 17.0.20.1 with PID 3976 (started by runner in /home/runner/work/comp5348-ci-relay/comp5348-ci-relay/repo/email)
2026-10-22T11:53:25.258Z INFO 3976 --- [ Test worker] c.g.e.n.EmailNotificationIntegrationTest : No active profile set, falling back to 1 default profile: "default"
2026-10-22T11:53:27.407Z INFO 3976 --- [ Test worker] org.flywaydb.core.FlywayExecutor : Database: jdbc:postgresql://localhost:32782/test (PostgreSQL 16.15)
2026-10-22T11:53:27.453Z INFO 3976 --- [ Test worker] o.f.c.i.s.JdbcTableSchemaHistory : Schema history table "public"."flyway_schema_history" does not exist yet
2026-10-22T11:53:27.457Z INFO 3976 --- [ Test worker] o.f.core.internal.command.DbValidate : Successfully validated 1 migration (execution time 00:00.016s)
2026-10-22T11:53:27.470Z INFO 3976 --- [ Test worker] o.f.c.i.s.JdbcTableSchemaHistory : Creating Schema History table "public"."flyway_schema_history" ...
2026-10-22T11:53:27.578Z INFO 3976 --- [ Test worker] o.f.core.internal.command.DbMigrate : Current version of schema "public": << Empty Schema >>
2026-10-22T11:53:27.593Z INFO 3976 --- [ Test worker] o.f.core.internal.command.DbMigrate : Migrating schema "public" to version "1 - create processed notification"
2026-10-22T11:53:27.623Z INFO 3976 --- [ Test worker] o.f.core.internal.command.DbMigrate : Successfully applied 1 migration to schema "public", now at version v1 (execution time 00:00.006s)
2026-10-22T11:53:28.756Z INFO 3976 --- [ Test worker] o.s.b.a.e.web.EndpointLinksResolver : Exposing 1 endpoint beneath base path '/actuator'
2026-10-22T11:53:28.952Z INFO 3976 --- [ Test worker] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [localhost:32779]
2026-10-22T11:53:28.996Z INFO 3976 --- [ Test worker] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#15bb8ed5:0/SimpleConnection@28d7bd6b [delegate=amqp://guest@127.0.0.1:32779/, localPort=47248]
2026-10-22T11:53:29.072Z INFO 3976 --- [ Test worker] c.g.e.n.EmailNotificationIntegrationTest : Started EmailNotificationIntegrationTest in 4.207 seconds (process running for 13.161)
2026-10-22T11:53:30.071Z INFO 3976 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2026-10-22T11:53:30.110Z INFO 3976 --- [ Test worker] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@4a15d5f5
2026-10-22T11:53:30.113Z INFO 3976 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2026-10-22T11:53:30.211Z INFO 3976 --- [ationListener-1] c.c.g.e.n.NotificationProcessor : Customer notification: orderId=2001, status=PAYMENT_FAILED
2026-10-22T11:53:30.218Z INFO 3976 --- [ationListener-1] c.c.g.e.n.NotificationProcessor : Customer notification: orderId=2001, status=ORDER_CANCELLED
2026-10-22T11:53:30.221Z INFO 3976 --- [ationListener-1] c.c.g.e.n.NotificationProcessor : Customer notification: orderId=2001, status=PICKED_UP
2026-10-22T11:53:30.225Z INFO 3976 --- [ationListener-1] c.c.g.e.n.NotificationProcessor : Customer notification: orderId=2001, status=IN_TRANSIT
2026-10-22T11:53:30.230Z INFO 3976 --- [ationListener-1] c.c.g.e.n.NotificationProcessor : Customer notification: orderId=2001, status=DELIVERED
2026-10-22T11:53:30.233Z INFO 3976 --- [ationListener-1] c.c.g.e.n.NotificationProcessor : Customer notification: orderId=2001, status=DELIVERY_LOST
2026-10-22T11:53:30.236Z INFO 3976 --- [ationListener-1] c.c.g.e.n.NotificationProcessor : Customer notification: orderId=2001, status=REFUND_PROCESSED
2026-10-22T11:53:30.238Z INFO 3976 --- [ationListener-1] c.c.g.e.n.NotificationProcessor : Ignoring duplicate customer notification: eventId=integration-PAYMENT_FAILED
2026-10-22T11:53:33.350Z WARN 3976 --- [ationListener-1] o.s.a.r.retry.RepublishMessageRecoverer : Republishing failed message to exchange 'email.notification.dlx' with routing key email.notification.dead
2026-10-22T11:53:33.399Z INFO 3976 --- [ Test worker] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
2026-10-22T11:53:34.353Z INFO 3976 --- [ Test worker] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
2026-10-22T11:53:34.471Z INFO 3976 --- [ationListener-2] c.c.g.e.n.NotificationProcessor : Customer notification: orderId=3001, status=DELIVERED, deliveryId=delivery-3001