Skip to content

バックエンドサンプルAPに対するプルリクエスト時の単体テスト実行 #570

バックエンドサンプルAPに対するプルリクエスト時の単体テスト実行

バックエンドサンプルAPに対するプルリクエスト時の単体テスト実行 #570

GitHub Actions / Maven Tests succeeded Jan 6, 2025 in 0s

46 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest.xml 3✅ 430ms
samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.CatalogApplicationServiceTest.xml 4✅ 61ms
samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.OrderApplicationServiceTest.xml 3✅ 84ms
samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.ShoppingApplicationServiceTest.xml 13✅ 232ms
samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.catalog.CatalogDomainServiceTest.xml 6✅ 73ms
samples/web-csr/dressca-backend/batch/build/test-results/test/TEST-com.dressca.batch.CatalogItemJobTest.xml 3✅ 1s
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest.xml 1✅ 65ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.advice.ExceptionHandlerControllerAdviceTest.xml 3✅ 537ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.advice.LocalExceptionHandlerControllerAdviceTest.xml 3✅ 183ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.AssetsControllerTest.xml 2✅ 474ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.HealthCheckTest.xml 2✅ 52ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.filter.BuyerIdFilterTest.xml 2✅ 89ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.WebApplicationTests.xml 1✅ 969ms

✅ samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest.xml

3 tests were completed in 430ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest 3✅ 430ms

✅ com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest

✅ testGetAssetResourceInfo_02_異常系_リポジトリに存在しないアセットコード
✅ testGetAssetResourceInfo_01_正常系_存在するアセットコード
✅ testGetAssetResourceInfo_03_異常系_ストアに存在しないアセットコード

✅ samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.CatalogApplicationServiceTest.xml

4 tests were completed in 61ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.applicationservice.CatalogApplicationServiceTest 4✅ 61ms

✅ com.dressca.applicationcore.applicationservice.CatalogApplicationServiceTest

✅ testGetCategories_正常系_リポジトリのgetAllを1回呼出す()
✅ testCountCatalogItems_正常系_リポジトリのcountByBrandIdAndCategoryIdを1回呼出す()
✅ testGetCatalogItems_正常系_リポジトリのfindByBrandIdAndCategoryIdを1回呼出す()
✅ testGetBrands_正常系_リポジトリのgetAllを1回呼出す()

✅ samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.OrderApplicationServiceTest.xml

3 tests were completed in 84ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.applicationservice.OrderApplicationServiceTest 3✅ 84ms

✅ com.dressca.applicationcore.applicationservice.OrderApplicationServiceTest

✅ testGetOrder_正常系_注文リポジトリから取得した情報と指定した購入者IDが合致する場合注文情報を取得できる()
✅ testGetOrder_異常系_注文リポジトリから取得した情報と指定した購入者IDが異なる場合例外になる()
✅ testGetOrder_異常系_注文リポジトリから注文情報を取得できない場合例外になる()

✅ samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.ShoppingApplicationServiceTest.xml

13 tests were completed in 232ms with 13 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.applicationservice.ShoppingApplicationServiceTest 13✅ 232ms

✅ com.dressca.applicationcore.applicationservice.ShoppingApplicationServiceTest

✅ testCheckout_異常系_指定した買い物かごが空の場合は業務例外が発生する()
✅ testAddItemToBasket_異常系_買い物かごが見つからない場合は例外が発生する()
✅ testSetQuantities_正常系_リポジトリのupdateを1度だけ呼出す()
✅ testCheckout_正常系_注文リポジトリのAddを1回呼出す()
✅ [1] buyerId=null
✅ [2] buyerId=
✅ [3] buyerId=
✅ testSetQuantities_異常系_カタログリポジトリに存在しない商品が指定された場合は例外が発生する()
✅ testAddItemToBasket_正常系_商品追加処理後に数量が0となる場合買い物かごアイテムは削除される()
✅ testAddItemToBasket_正常系_リポジトリのupdateを1度だけ呼出す()
✅ testSetQuantities_正常系_買い物かごに存在する商品を指定すると買い物かごの商品数が更新される()
✅ testSetQuantities_異常系_買い物かごに入っていない商品が指定された場合は例外が発生する()
✅ testGetBasketDetail_正常系_カタログIDに対応するカタログ情報が取得されること()

✅ samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.catalog.CatalogDomainServiceTest.xml

6 tests were completed in 73ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.catalog.CatalogDomainServiceTest 6✅ 73ms

✅ com.dressca.applicationcore.catalog.CatalogDomainServiceTest

✅ testExistAll_正常系_リポジトリ内に存在するアイテムのリストを返す()
✅ testExistAll_正常系_リポジトリのfindByCategoryIdInを1度だけ呼出す()
✅ testGetExistCatalogItems_正常系_リポジトリのfindByCategoryIdInを1度だけ呼出す()
✅ testExistAll_正常系_カタログアイテムIdが一部だけ存在する場合falseを返す()
✅ testExistAll_正常系_カタログアイテムIdが1件も存在しない場合falseを返す()
✅ testExistAll_正常系_カタログアイテムIdがすべて存在する場合trueを返す()

✅ samples/web-csr/dressca-backend/batch/build/test-results/test/TEST-com.dressca.batch.CatalogItemJobTest.xml

3 tests were completed in 1s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.batch.CatalogItemJobTest 3✅ 1s

✅ com.dressca.batch.CatalogItemJobTest

✅ jobTest_10data()
✅ jobTest_empty()
✅ stepTest_10data()

✅ samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest.xml

1 tests were completed in 65ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest 1✅ 65ms

✅ com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest

✅ testGetAssetResourceInfo()

✅ samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.advice.ExceptionHandlerControllerAdviceTest.xml

3 tests were completed in 537ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.web.controller.advice.ExceptionHandlerControllerAdviceTest 3✅ 537ms

✅ com.dressca.web.controller.advice.ExceptionHandlerControllerAdviceTest

✅ testException_01_正常系_その他の業務エラーをステータースコード500で返却する(本番環境)。
✅ testException_02_正常系_その他のシステムエラーをステータースコード500で返却する(本番環境)。
✅ testException_03_正常系_上記のいずれにも当てはまらない例外をステータースコード500で返却する(本番環境)。

✅ samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.advice.LocalExceptionHandlerControllerAdviceTest.xml

3 tests were completed in 183ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.web.controller.advice.LocalExceptionHandlerControllerAdviceTest 3✅ 183ms

✅ com.dressca.web.controller.advice.LocalExceptionHandlerControllerAdviceTest

✅ testException_01_正常系_その他の業務エラーをステータースコード500で返却する(開発環境)。
✅ testException_02_正常系_その他のシステムエラーをステータースコード500で返却する(開発環境)。
✅ testException_03_正常系_上記のいずれにも当てはまらない例外をステータースコード500で返却する(開発環境)。

✅ samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.AssetsControllerTest.xml

2 tests were completed in 474ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.web.controller.AssetsControllerTest 2✅ 474ms

✅ com.dressca.web.controller.AssetsControllerTest

✅ testGet_01_正常系_存在するアセットコード
✅ testGet_02_異常系_存在しないアセットコード

✅ samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.HealthCheckTest.xml

2 tests were completed in 52ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.web.controller.HealthCheckTest 2✅ 52ms

✅ com.dressca.web.controller.HealthCheckTest

✅ testGet_03_ヘルスチェック_サーバ正常動作確認
✅ testGet_04_ヘルスチェック_DB正常動作確認

✅ samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.filter.BuyerIdFilterTest.xml

2 tests were completed in 89ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.web.filter.BuyerIdFilterTest 2✅ 89ms

✅ com.dressca.web.filter.BuyerIdFilterTest

✅ 構成ファイルの設定がない場合
✅ 構成ファイルの設定がある場合

✅ samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.WebApplicationTests.xml

1 tests were completed in 969ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.web.WebApplicationTests 1✅ 969ms

✅ com.dressca.web.WebApplicationTests

✅ contextLoads()