EmailNotificationIntegrationTest

3

tests

0

failures

0

ignored

5.113s

duration

100%

successful

Tests

Test Duration Result
consumesAllNotificationStatusesAndIgnoresRedelivery() 0.874s passed
invalidNotificationIsSentToDeadLetterQueue() 3.055s passed
queuedMessagesAreProcessedAfterListenerRestarts() 1.184s passed

Standard output

10:47:05.277 [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.
10:47:05.423 [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
10:47:05.492 [Test worker] INFO tc.rabbitmq:3.13-management -- Creating container for image: rabbitmq:3.13-management
10:47:05.523 [Test worker] INFO tc.rabbitmq:3.13-management -- Container rabbitmq:3.13-management is starting: d447df5ccaafeb79432591eb996f98e5c96b376c8e5a6d55ad68e9c415fd76ea
10:47:09.700 [Test worker] INFO tc.rabbitmq:3.13-management -- Container rabbitmq:3.13-management started in PT4.206725358S
10:47:09.702 [Test worker] INFO tc.postgres:16 -- Creating container for image: postgres:16
10:47:09.754 [Test worker] INFO tc.postgres:16 -- Container postgres:16 is starting: 5990dbcc9361d879c7a0dfedbcd8464a8123b22abe306dc30b654f213ef1d98c
10:47:11.005 [Test worker] INFO tc.postgres:16 -- Container postgres:16 started in PT1.303672517S
10:47:11.007 [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-22T10:47:11.325Z  INFO 3887 --- [    Test worker] c.g.e.n.EmailNotificationIntegrationTest : Starting EmailNotificationIntegrationTest using Java 17.0.20.1 with PID 3887 (started by runner in /home/runner/work/comp5348-ci-relay/comp5348-ci-relay/repo/email)
2026-10-22T10:47:11.329Z  INFO 3887 --- [    Test worker] c.g.e.n.EmailNotificationIntegrationTest : No active profile set, falling back to 1 default profile: "default"
2026-10-22T10:47:12.724Z  INFO 3887 --- [    Test worker] org.flywaydb.core.FlywayExecutor         : Database: jdbc:postgresql://localhost:32782/test (PostgreSQL 16.15)
2026-10-22T10:47:12.753Z  INFO 3887 --- [    Test worker] o.f.c.i.s.JdbcTableSchemaHistory         : Schema history table "public"."flyway_schema_history" does not exist yet
2026-10-22T10:47:12.756Z  INFO 3887 --- [    Test worker] o.f.core.internal.command.DbValidate     : Successfully validated 1 migration (execution time 00:00.013s)
2026-10-22T10:47:12.768Z  INFO 3887 --- [    Test worker] o.f.c.i.s.JdbcTableSchemaHistory         : Creating Schema History table "public"."flyway_schema_history" ...
2026-10-22T10:47:12.833Z  INFO 3887 --- [    Test worker] o.f.core.internal.command.DbMigrate      : Current version of schema "public": << Empty Schema >>
2026-10-22T10:47:12.843Z  INFO 3887 --- [    Test worker] o.f.core.internal.command.DbMigrate      : Migrating schema "public" to version "1 - create processed notification"
2026-10-22T10:47:12.867Z  INFO 3887 --- [    Test worker] o.f.core.internal.command.DbMigrate      : Successfully applied 1 migration to schema "public", now at version v1 (execution time 00:00.005s)
2026-10-22T10:47:13.697Z  INFO 3887 --- [    Test worker] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 1 endpoint beneath base path '/actuator'
2026-10-22T10:47:13.802Z  INFO 3887 --- [    Test worker] o.s.a.r.c.CachingConnectionFactory       : Attempting to connect to: [localhost:32779]
2026-10-22T10:47:13.869Z  INFO 3887 --- [    Test worker] o.s.a.r.c.CachingConnectionFactory       : Created new connection: rabbitConnectionFactory#62a41279:0/SimpleConnection@2259d54f [delegate=amqp://guest@127.0.0.1:32779/, localPort=42686]
2026-10-22T10:47:14.012Z  INFO 3887 --- [    Test worker] c.g.e.n.EmailNotificationIntegrationTest : Started EmailNotificationIntegrationTest in 2.962 seconds (process running for 10.214)
2026-10-22T10:47:14.711Z  INFO 3887 --- [    Test worker] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2026-10-22T10:47:14.749Z  INFO 3887 --- [    Test worker] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@40612056
2026-10-22T10:47:14.752Z  INFO 3887 --- [    Test worker] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2026-10-22T10:47:14.810Z  INFO 3887 --- [ationListener-1] c.c.g.e.n.NotificationProcessor          : Customer notification: orderId=2001, status=PAYMENT_FAILED
2026-10-22T10:47:14.814Z  INFO 3887 --- [ationListener-1] c.c.g.e.n.NotificationProcessor          : Customer notification: orderId=2001, status=ORDER_CANCELLED
2026-10-22T10:47:14.816Z  INFO 3887 --- [ationListener-1] c.c.g.e.n.NotificationProcessor          : Customer notification: orderId=2001, status=PICKED_UP
2026-10-22T10:47:14.818Z  INFO 3887 --- [ationListener-1] c.c.g.e.n.NotificationProcessor          : Customer notification: orderId=2001, status=IN_TRANSIT
2026-10-22T10:47:14.819Z  INFO 3887 --- [ationListener-1] c.c.g.e.n.NotificationProcessor          : Customer notification: orderId=2001, status=DELIVERED
2026-10-22T10:47:14.821Z  INFO 3887 --- [ationListener-1] c.c.g.e.n.NotificationProcessor          : Customer notification: orderId=2001, status=DELIVERY_LOST
2026-10-22T10:47:14.822Z  INFO 3887 --- [ationListener-1] c.c.g.e.n.NotificationProcessor          : Customer notification: orderId=2001, status=REFUND_PROCESSED
2026-10-22T10:47:14.824Z  INFO 3887 --- [ationListener-1] c.c.g.e.n.NotificationProcessor          : Ignoring duplicate customer notification: eventId=integration-PAYMENT_FAILED
2026-10-22T10:47:17.960Z  WARN 3887 --- [ationListener-1] o.s.a.r.retry.RepublishMessageRecoverer  : Republishing failed message to exchange 'email.notification.dlx' with routing key email.notification.dead
2026-10-22T10:47:18.002Z  INFO 3887 --- [    Test worker] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
2026-10-22T10:47:18.961Z  INFO 3887 --- [    Test worker] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
2026-10-22T10:47:19.074Z  INFO 3887 --- [ationListener-2] c.c.g.e.n.NotificationProcessor          : Customer notification: orderId=3001, status=DELIVERED, deliveryId=delivery-3001