Skip to content

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

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

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

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Maven Tests succeeded Nov 13, 2023 in 0s

Maven Tests ✅

Tests passed successfully

Report Passed Failed Skipped Time
samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.assets.AssetApplicationServiceTest.xml 3✅ 487ms
samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.baskets.BasketApplicationServiceTest.xml 14✅ 305ms
samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.catalog.CatalogApplicationServiceTest.xml 4✅ 37ms
samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.catalog.CatalogDomainServiceTest.xml 6✅ 48ms
samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.order.OrderApplicationServiceTest.xml 6✅ 61ms
samples/web-csr/dressca-backend/batch/build/test-results/test/TEST-com.dressca.batch.CatalogItemJobTest.xml 3✅ 2s
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.applicationcore.assets.AssetApplicationServiceTest.xml 1✅ 32ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.AssetsControllerTest.xml 2✅ 427ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controller.HealthCheckTest.xml 2✅ 65ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.controlleradvice.ExceptionHandlerControllerAdviceTest.xml 3✅ 702ms
samples/web-csr/dressca-backend/web/build/test-results/test/TEST-com.dressca.web.WebApplicationTests.xml 1✅ 1s

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

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

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.assets.AssetApplicationServiceTest 3✅ 487ms

✅ com.dressca.applicationcore.assets.AssetApplicationServiceTest

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

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

14 tests were completed in 305ms with 14 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.baskets.BasketApplicationServiceTest 14✅ 305ms

✅ com.dressca.applicationcore.baskets.BasketApplicationServiceTest

✅ testDeleteToBasket_異常系_買い物かごが見つからない場合は例外が発生する()
✅ testAddItemToBasket_異常系_買い物かごが見つからない場合は例外が発生する()
✅ [1] buyerId=null
✅ [2] buyerId=
✅ [3] buyerId=
✅ testSetQuantities_正常系_リポジトリのupdateを1度だけ呼出す()
✅ testGetOrCreateBasketForUser_正常系_購入者Idに対応する買い物かご情報が存在しない場合は新規作成する()
✅ testDeleteBasket_正常系_リポジトリのremoveを1度だけ呼出す()
✅ testGetOrCreateBasketForUser_正常系_購入者Idに対応する買い物かご情報が存在する場合はその情報を返す()
✅ testSetQuantities_正常系_買い物かごに存在しない商品を指定しても買い物かごには追加されない()
✅ testAddItemToBasket_正常系_商品追加処理後に数量が0となる場合買い物かごアイテムは削除される()
✅ testAddItemToBasket_正常系_リポジトリのupdateを1度だけ呼出す()
✅ testSetQuantities_正常系_買い物かごに存在する商品を指定すると買い物かごの商品数が更新される()
✅ testSetQuantities_異常系_買い物かごが見つからない場合は例外が発生する()

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

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

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.catalog.CatalogApplicationServiceTest 4✅ 37ms

✅ com.dressca.applicationcore.catalog.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.catalog.CatalogDomainServiceTest.xml

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

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

✅ 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/application-core/build/test-results/test/TEST-com.dressca.applicationcore.order.OrderApplicationServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.order.OrderApplicationServiceTest 6✅ 61ms

✅ com.dressca.applicationcore.order.OrderApplicationServiceTest

✅ testCreateOrder_異常系_指定した買い物かごが空の場合は業務例外が発生する()
✅ testGetOrder_正常系_注文リポジトリから取得した情報と指定した購入者IDが合致する場合注文情報を取得できる()
✅ testGetOrder_異常系_注文リポジトリから取得した情報と指定した購入者IDが異なる場合例外になる()
✅ testCreateOrder_正常系_注文リポジトリのAddを1回呼出す()
✅ testCreateOrder_異常系_指定した買い物かごが存在しない場合は業務例外が発生する()
✅ testGetOrder_異常系_注文リポジトリから注文情報を取得できない場合例外になる()

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

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

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

✅ com.dressca.batch.CatalogItemJobTest

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

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

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

Test suite Passed Failed Skipped Time
com.dressca.applicationcore.assets.AssetApplicationServiceTest 1✅ 32ms

✅ com.dressca.applicationcore.assets.AssetApplicationServiceTest

✅ testGetAssetResourceInfo()

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

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

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

✅ 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 65ms with 2 passed, 0 failed and 0 skipped.

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

✅ com.dressca.web.controller.HealthCheckTest

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

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

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

Test suite Passed Failed Skipped Time
com.dressca.web.controlleradvice.ExceptionHandlerControllerAdviceTest 3✅ 702ms

✅ com.dressca.web.controlleradvice.ExceptionHandlerControllerAdviceTest

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

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

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

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

✅ com.dressca.web.WebApplicationTests

✅ contextLoads()