2023-05-22 09:12:46.693 INFO 3084 --- [ Test worker] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [edu.obya.blueprint.customer.adapter.rest.CustomerControllerIT]: no resource found for suffixes {-context.xml, Context.groovy}.
2023-05-22 09:12:46.705 INFO 3084 --- [ Test worker] .b.t.a.w.s.WebMvcTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener, org.springframework.security.test.context.support.ReactorContextTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener, io.zonky.test.db.EmbeddedDatabaseTestExecutionListener, io.zonky.test.db.event.EventPublishingTestExecutionListener, io.zonky.test.db.flyway.OptimizedFlywayTestExecutionListener]
2023-05-22 09:12:46.706 INFO 3084 --- [ Test worker] .b.t.a.w.s.WebMvcTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@1b68e626, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@7671922b, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@6829b897, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@519e0814, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@d1b9dd7, org.springframework.test.context.support.DirtiesContextTestExecutionListener@7701b695, io.zonky.test.db.EmbeddedDatabaseTestExecutionListener@524945e2, io.zonky.test.db.flyway.OptimizedFlywayTestExecutionListener@73b63917, org.springframework.test.context.transaction.TransactionalTestExecutionListener@2292e793, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@58dd584a, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener@40a360e6, org.springframework.test.context.event.EventPublishingTestExecutionListener@21f9764, org.springframework.security.test.context.support.ReactorContextTestExecutionListener@378456cb, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@5295779, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@5ed6a36a, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@200cbb63, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@35ab83a7, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@7a7698f4, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@1150b923, io.zonky.test.db.event.EventPublishingTestExecutionListener@54c2cfc9]
██████╗██╗ ██╗███████╗████████╗ ██████╗ ███╗ ███╗███████╗██████╗
██╔════╝██║ ██║██╔════╝╚══██╔══╝██╔═══██╗████╗ ████║██╔════╝██╔══██╗
██║ ██║ ██║███████╗ ██║ ██║ ██║██╔████╔██║█████╗ ██████╔╝
██║ ██║ ██║╚════██║ ██║ ██║ ██║██║╚██╔╝██║██╔══╝ ██╔══██╗
╚██████╗╚██████╔╝███████║ ██║ ╚██████╔╝██║ ╚═╝ ██║███████╗██║ ██║
╚═════╝ ╚═════╝ ╚══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
2023-05-22 09:12:46.742 WARN 3084 --- [ Test worker] ory$DuplicateJsonObjectContextCustomizer :
Found multiple occurrences of org.json.JSONObject on the class path:
jar:file:/home/runner/.gradle/caches/modules-2/files-2.1/org.json/json/20220924/5aa95e7688f76c664af205c5937620f02688dfbc/json-20220924.jar!/org/json/JSONObject.class
jar:file:/home/runner/.gradle/caches/modules-2/files-2.1/com.vaadin.external.google/android-json/0.0.20131108.vaadin1/fa26d351fe62a6a17f5cda1287c1c6110dec413f/android-json-0.0.20131108.vaadin1.jar!/org/json/JSONObject.class
You may wish to exclude one of them to ensure predictable runtime behavior
2023-05-22 09:12:46.744 INFO 3084 --- [ Test worker] e.o.b.c.a.rest.CustomerControllerIT : Starting CustomerControllerIT using Java 17.0.7 on fv-az1256-291 with PID 3084 (started by runner in /home/runner/work/arch-blueprint-java/arch-blueprint-java)
2023-05-22 09:12:46.744 INFO 3084 --- [ Test worker] e.o.b.c.a.rest.CustomerControllerIT : The following 2 profiles are active: "test", "jpa"
2023-05-22 09:12:47.063 INFO 3084 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2023-05-22 09:12:47.075 INFO 3084 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 11 ms. Found 1 JPA repository interfaces.
2023-05-22 09:12:47.246 INFO 3084 --- [ Test worker] EmbeddedDatabaseContextCustomizerFactory : Replacing 'dataSource' DataSource bean with embedded version
2023-05-22 09:12:47.406 INFO 3084 --- [ Test worker] trationDelegate$BeanPostProcessorChecker : Bean 'io.zonky.test.db.config.EmbeddedDatabaseAutoConfiguration' of type [io.zonky.test.db.config.EmbeddedDatabaseAutoConfiguration$$EnhancerBySpringCGLIB$$a8189397] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2023-05-22 09:12:47.613 INFO 3084 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2023-05-22 09:12:47.624 INFO 3084 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL10Dialect
2023-05-22 09:12:47.648 INFO 3084 --- [ Test worker] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2023-05-22 09:12:47.648 INFO 3084 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2023-05-22 09:12:49.209 INFO 3084 --- [ Test worker] o.s.s.web.DefaultSecurityFilterChain : Will secure any request with [org.springframework.security.web.session.DisableEncodeUrlFilter@882c166, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@67d361fa, org.springframework.security.web.context.SecurityContextPersistenceFilter@46c6ff37, org.springframework.security.web.header.HeaderWriterFilter@2c952e6, org.springframework.web.filter.CorsFilter@3c5077f6, org.springframework.security.web.authentication.logout.LogoutFilter@1f9678b0, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@4631a6a9, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@6ab4517f, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@1b7a2459, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@497031ea, org.springframework.security.web.session.SessionManagementFilter@2f087301, org.springframework.security.web.access.ExceptionTranslationFilter@7e5e568e, org.springframework.security.web.access.intercept.AuthorizationFilter@16ea544e]
2023-05-22 09:12:49.632 INFO 3084 --- [ Test worker] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
2023-05-22 09:12:49.632 INFO 3084 --- [ Test worker] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet ''
2023-05-22 09:12:49.643 INFO 3084 --- [ Test worker] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 10 ms
2023-05-22 09:12:49.688 INFO 3084 --- [ Test worker] e.o.b.c.a.rest.CustomerControllerIT : Started CustomerControllerIT in 2.976 seconds (JVM running for 13.057)
2023-05-22 09:12:49.707 INFO 3084 --- [ Test worker] o.s.t.c.transaction.TransactionContext : Began transaction (1) for test context [DefaultTestContext@c9f9fe3 testClass = CustomerControllerIT, testInstance = edu.obya.blueprint.customer.adapter.rest.CustomerControllerIT@33e888d4, testMethod = shouldCreateAndModifyAndDeleteCustomer@CustomerControllerIT, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@1f93cdc0 testClass = CustomerControllerIT, locations = '{}', classes = '{class edu.obya.blueprint.customer.adapter.rest.CustomerController, class edu.obya.blueprint.customer.adapter.rest.CustomerWebConfiguration, class edu.obya.blueprint.config.WebSecurityConfiguration, class edu.obya.blueprint.config.WebValidationConfiguration, class edu.obya.blueprint.config.ExceptionHandling, class edu.obya.blueprint.customer.adapter.jpa.CustomerJpaConfiguration, class edu.obya.blueprint.customer.application.CustomerApplicationConfiguration, class org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfiguration, class org.springframework.boot.actuate.autoconfigure.metrics.CompositeMeterRegistryAutoConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{test, jpa}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@35e26d05, org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@1bb740f2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@9d66fdb7, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@ea2b59bb, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@3a2d3909, [ImportsContextCustomizer@162807e5 key = [org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.sql.init.SqlInitializationAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration, org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration, org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration, org.springframework.boot.autoconfigure.groovy.template.GroovyTemplateAutoConfiguration, org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration, org.springframework.boot.autoconfigure.hateoas.HypermediaAutoConfiguration, org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration, org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration, org.springframework.boot.autoconfigure.jsonb.JsonbAutoConfiguration, org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration, org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration, org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration, org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration, org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration, org.springframework.boot.autoconfigure.web.servlet.HttpEncodingAutoConfiguration, org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcWebClientAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcWebDriverAutoConfiguration, org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration, org.springframework.boot.autoconfigure.security.oauth2.resource.servlet.OAuth2ResourceServerAutoConfiguration, org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration, org.springframework.boot.autoconfigure.security.servlet.SecurityFilterAutoConfiguration, org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcSecurityConfiguration, org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4832f03b, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@68565bc7, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@f824ad4d, io.zonky.test.db.EmbeddedDatabaseContextCustomizerFactory$EmbeddedDatabaseContextCustomizer@4637c061, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@0], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.event.ApplicationEventsTestExecutionListener.recordApplicationEvents' -> false]]; transaction manager [org.springframework.orm.jpa.JpaTransactionManager@66a5a12c]; rollback [true]
2023-05-22 09:12:49.709 INFO 3084 --- [ Test worker] i.z.t.d.l.EmbeddedDatabaseReporter : JDBC URL to connect to 'dataSource': url='jdbc:postgresql://localhost:32773/pdkfjspxwvjz?user=postgres&password=docker', scope='CustomerControllerIT#shouldCreateAndModifyAndDeleteCustomer'
Hibernate: select jpacustome0_.pk as pk1_0_, jpacustome0_.firstname as firstnam2_0_, jpacustome0_.lastname as lastname3_0_, jpacustome0_.id as id4_0_ from customer jpacustome0_ where jpacustome0_.firstname=? and jpacustome0_.lastname=?
Hibernate: select jpacustome0_.pk as pk1_0_0_, jpacustome0_.firstname as firstnam2_0_0_, jpacustome0_.lastname as lastname3_0_0_, jpacustome0_.id as id4_0_0_ from customer jpacustome0_ where jpacustome0_.pk=?
Hibernate: insert into customer (firstname, lastname, id, pk) values (?, ?, ?, ?)
Hibernate: select jpacustome0_.pk as pk1_0_, jpacustome0_.firstname as firstnam2_0_, jpacustome0_.lastname as lastname3_0_, jpacustome0_.id as id4_0_ from customer jpacustome0_ where jpacustome0_.firstname=? and jpacustome0_.lastname=?
Hibernate: select jpacustome0_.pk as pk1_0_, jpacustome0_.firstname as firstnam2_0_, jpacustome0_.lastname as lastname3_0_, jpacustome0_.id as id4_0_ from customer jpacustome0_ where jpacustome0_.id=?
Hibernate: update customer set firstname=?, lastname=?, id=? where pk=?
Hibernate: select jpacustome0_.pk as pk1_0_, jpacustome0_.firstname as firstnam2_0_, jpacustome0_.lastname as lastname3_0_, jpacustome0_.id as id4_0_ from customer jpacustome0_ where jpacustome0_.id=?
Hibernate: delete from customer where pk=?
2023-05-22 09:12:50.296 INFO 3084 --- [ Test worker] o.s.t.c.transaction.TransactionContext : Rolled back transaction for test: [DefaultTestContext@c9f9fe3 testClass = CustomerControllerIT, testInstance = edu.obya.blueprint.customer.adapter.rest.CustomerControllerIT@33e888d4, testMethod = shouldCreateAndModifyAndDeleteCustomer@CustomerControllerIT, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@1f93cdc0 testClass = CustomerControllerIT, locations = '{}', classes = '{class edu.obya.blueprint.customer.adapter.rest.CustomerController, class edu.obya.blueprint.customer.adapter.rest.CustomerWebConfiguration, class edu.obya.blueprint.config.WebSecurityConfiguration, class edu.obya.blueprint.config.WebValidationConfiguration, class edu.obya.blueprint.config.ExceptionHandling, class edu.obya.blueprint.customer.adapter.jpa.CustomerJpaConfiguration, class edu.obya.blueprint.customer.application.CustomerApplicationConfiguration, class org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfiguration, class org.springframework.boot.actuate.autoconfigure.metrics.CompositeMeterRegistryAutoConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{test, jpa}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@35e26d05, org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@1bb740f2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@9d66fdb7, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@ea2b59bb, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@3a2d3909, [ImportsContextCustomizer@162807e5 key = [org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.sql.init.SqlInitializationAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration, org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration, org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration, org.springframework.boot.autoconfigure.groovy.template.GroovyTemplateAutoConfiguration, org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration, org.springframework.boot.autoconfigure.hateoas.HypermediaAutoConfiguration, org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration, org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration, org.springframework.boot.autoconfigure.jsonb.JsonbAutoConfiguration, org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration, org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration, org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration, org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration, org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration, org.springframework.boot.autoconfigure.web.servlet.HttpEncodingAutoConfiguration, org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcWebClientAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcWebDriverAutoConfiguration, org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration, org.springframework.boot.autoconfigure.security.oauth2.resource.servlet.OAuth2ResourceServerAutoConfiguration, org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration, org.springframework.boot.autoconfigure.security.servlet.SecurityFilterAutoConfiguration, org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcSecurityConfiguration, org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4832f03b, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@68565bc7, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@f824ad4d, io.zonky.test.db.EmbeddedDatabaseContextCustomizerFactory$EmbeddedDatabaseContextCustomizer@4637c061, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@0], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.event.ApplicationEventsTestExecutionListener.recordApplicationEvents' -> false]]