[Test] TestContainers와 H2로 DB 테스트하기 #7
Annotations
9 errors and 9 warnings
ShopApplicationTests.contextLoads():
src/test/java/com/example/shop/ShopApplicationTests.java#L1
java.lang.IllegalStateException: Failed to load ApplicationContext for [WebMergedContextConfiguration@6238b10a testClass = com.example.shop.ShopApplicationTests, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
|
OrderDeliveryRepositoryTest.asyncDelete 메서드 테스트:
src/test/java/com/example/shop/admin/dao/OrderDeliveryRepositoryTest.java#L1
java.lang.IllegalStateException: Failed to load ApplicationContext for [WebMergedContextConfiguration@22aaa811 testClass = com.example.shop.admin.dao.OrderDeliveryRepositoryTest, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, [ImportsContextCustomizer@1df6f57d key = [com.example.shop.global.config.RedisTestConfig]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@943d8937, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
|
OrderDeliveryRepositoryTest.existOrder 메서드 테스트:
src/test/java/com/example/shop/admin/dao/OrderDeliveryRepositoryTest.java#L1
java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@22aaa811 testClass = com.example.shop.admin.dao.OrderDeliveryRepositoryTest, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, [ImportsContextCustomizer@1df6f57d key = [com.example.shop.global.config.RedisTestConfig]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@943d8937, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
|
OrderDeliveryRepositoryTest.popOrder 메서드 테스트:
src/test/java/com/example/shop/admin/dao/OrderDeliveryRepositoryTest.java#L1
java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@22aaa811 testClass = com.example.shop.admin.dao.OrderDeliveryRepositoryTest, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, [ImportsContextCustomizer@1df6f57d key = [com.example.shop.global.config.RedisTestConfig]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@943d8937, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
|
OrderDeliveryRepositoryTest.addOrderEmail 메서드 테스트:
src/test/java/com/example/shop/admin/dao/OrderDeliveryRepositoryTest.java#L1
java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@22aaa811 testClass = com.example.shop.admin.dao.OrderDeliveryRepositoryTest, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, [ImportsContextCustomizer@1df6f57d key = [com.example.shop.global.config.RedisTestConfig]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@943d8937, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
|
OrderDeliveryRepositoryTest.removeOrderEmail 메서드 테스트:
src/test/java/com/example/shop/admin/dao/OrderDeliveryRepositoryTest.java#L1
java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@22aaa811 testClass = com.example.shop.admin.dao.OrderDeliveryRepositoryTest, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, [ImportsContextCustomizer@1df6f57d key = [com.example.shop.global.config.RedisTestConfig]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.test.context.support.DynamicPropertiesContextCustomizer@943d8937, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
|
EmailSenderTest.주문 배송 알림 이메일 송수신 테스트:
src/test/java/com/example/shop/global/util/EmailSenderTest.java#L1
java.lang.IllegalStateException: Failed to load ApplicationContext for [WebMergedContextConfiguration@73cae081 testClass = com.example.shop.global.util.EmailSenderTest, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, [ImportsContextCustomizer@77e1f2a2 key = [com.example.shop.global.config.RedisTestConfig]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
|
EmailSenderTest.이메일 인증 코드 송수신 테스트:
src/test/java/com/example/shop/global/util/EmailSenderTest.java#L1
java.lang.IllegalStateException: ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@73cae081 testClass = com.example.shop.global.util.EmailSenderTest, locations = [], classes = [com.example.shop.ShopApplication], contextInitializerClasses = [], activeProfiles = ["test"], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.testcontainers.service.connection.ServiceConnectionContextCustomizer@0, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1cbf6e72, [ImportsContextCustomizer@77e1f2a2 key = [com.example.shop.global.config.RedisTestConfig]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4da602fc, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4c398c80, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26425897, org.springframework.boot.test.context.SpringBootTestAnnotation@3ce256e7], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
|
Test
Process completed with exit code 1.
|
asyncDelete 메서드 테스트 (com.example.shop.admin.dao.OrderDeliveryRepositoryTest) failed:
com.example.shop.admin.dao.OrderDeliveryRepositoryTest#L0
build/test-results/test/TEST-com.example.shop.admin.dao.OrderDeliveryRepositoryTest.xml [took 0s]
|
existOrder 메서드 테스트 (com.example.shop.admin.dao.OrderDeliveryRepositoryTest) failed:
com.example.shop.admin.dao.OrderDeliveryRepositoryTest#L0
build/test-results/test/TEST-com.example.shop.admin.dao.OrderDeliveryRepositoryTest.xml [took 0s]
|
popOrder 메서드 테스트 (com.example.shop.admin.dao.OrderDeliveryRepositoryTest) failed:
com.example.shop.admin.dao.OrderDeliveryRepositoryTest#L0
build/test-results/test/TEST-com.example.shop.admin.dao.OrderDeliveryRepositoryTest.xml [took 0s]
|
addOrderEmail 메서드 테스트 (com.example.shop.admin.dao.OrderDeliveryRepositoryTest) failed:
com.example.shop.admin.dao.OrderDeliveryRepositoryTest#L0
build/test-results/test/TEST-com.example.shop.admin.dao.OrderDeliveryRepositoryTest.xml [took 0s]
|
removeOrderEmail 메서드 테스트 (com.example.shop.admin.dao.OrderDeliveryRepositoryTest) failed:
com.example.shop.admin.dao.OrderDeliveryRepositoryTest#L0
build/test-results/test/TEST-com.example.shop.admin.dao.OrderDeliveryRepositoryTest.xml [took 0s]
|
주문 배송 알림 이메일 송수신 테스트 (com.example.shop.global.util.EmailSenderTest) failed:
com.example.shop.global.util.EmailSenderTest#L0
build/test-results/test/TEST-com.example.shop.global.util.EmailSenderTest.xml [took 0s]
|
이메일 인증 코드 송수신 테스트 (com.example.shop.global.util.EmailSenderTest) failed:
com.example.shop.global.util.EmailSenderTest#L0
build/test-results/test/TEST-com.example.shop.global.util.EmailSenderTest.xml [took 0s]
|
contextLoads() (com.example.shop.ShopApplicationTests) failed:
com.example.shop.ShopApplicationTests#L0
build/test-results/test/TEST-com.example.shop.ShopApplicationTests.xml [took 0s]
|
Test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|