Skip to content
Triggered via pull request September 22, 2023 02:39
Status Failure
Total duration 2m 57s
Artifacts

lint-and-test.yml

on: pull_request
Check kotlin lint
26s
Check kotlin lint
Execute coverage
0s
Execute coverage
Fit to window
Zoom out
Zoom in

Annotations

69 errors and 2 warnings
[ktlint] src/main/kotlin/com/hanghae/health/service/UserService.kt#L3 <standard:import-ordering>: src/main/kotlin/com/hanghae/health/service/UserService.kt#L3
Imports must be ordered in lexicographic order without any empty lines in-between with "java", "javax", "kotlin" and aliases in the end
RegisterProductTest.findById - 등록된 상품을 조회한다$HangHae01_test(): src/test/kotlin/com/hanghae/health/product/feature/RegisterProductTest.kt#L27
org.springframework.dao.InvalidDataAccessResourceUsageException: could not prepare statement [Table "PRODUCT" not found (this database is empty); SQL statement: select p1_0.product_no,p1_0.brand,p1_0.category,p1_0.code,p1_0.description,p1_0.maker,p1_0.name,p1_0.origin,p1_0.height_in_millimeters,p1_0.length_in_millimeters,p1_0.width_in_millimeters,p1_0.temperature_zone,p1_0.weight_in_grams from product p1_0 where p1_0.product_no=? [42104-214]] [select p1_0.product_no,p1_0.brand,p1_0.category,p1_0.code,p1_0.description,p1_0.maker,p1_0.name,p1_0.origin,p1_0.height_in_millimeters,p1_0.length_in_millimeters,p1_0.width_in_millimeters,p1_0.temperature_zone,p1_0.weight_in_grams from product p1_0 where p1_0.product_no=?]; SQL [select p1_0.product_no,p1_0.brand,p1_0.category,p1_0.code,p1_0.description,p1_0.maker,p1_0.name,p1_0.origin,p1_0.height_in_millimeters,p1_0.length_in_millimeters,p1_0.width_in_millimeters,p1_0.temperature_zone,p1_0.weight_in_grams from product p1_0 where p1_0.product_no=?]
RegisterProductTest.save - 상품을 등록한다$HangHae01_test(): src/test/kotlin/com/hanghae/health/product/feature/RegisterProductTest.kt#L18
java.lang.AssertionError: 1 expectation failed. Expected status code <201> but was <500>.
Execute test
Process completed with exit code 1.
findById - 등록된 상품을 조회한다$HangHae01_test() (com.hanghae.health.product.feature.RegisterProductTest) failed: com.hanghae.health.product.feature.RegisterProductTest#L0
build/test-results/unitTest/TEST-com.hanghae.health.product.feature.RegisterProductTest.xml [took 1s]
save - 상품을 등록한다$HangHae01_test() (com.hanghae.health.product.feature.RegisterProductTest) failed: com.hanghae.health.product.feature.RegisterProductTest#L0
build/test-results/unitTest/TEST-com.hanghae.health.product.feature.RegisterProductTest.xml [took 3s]