バックエンドサンプルAPに対するプルリクエスト時の単体テスト実行 #570
46 passed, 0 failed and 0 skipped
✅ samples/web-csr/dressca-backend/application-core/build/test-results/test/TEST-com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest.xml
3 tests were completed in 308ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest | 3✅ | 308ms |
✅ 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 31ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.dressca.applicationcore.applicationservice.CatalogApplicationServiceTest | 4✅ | 31ms |
✅ 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 38ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.dressca.applicationcore.applicationservice.OrderApplicationServiceTest | 3✅ | 38ms |
✅ 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 250ms with 13 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.dressca.applicationcore.applicationservice.ShoppingApplicationServiceTest | 13✅ | 250ms |
✅ 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 68ms with 6 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.dressca.applicationcore.catalog.CatalogDomainServiceTest | 6✅ | 68ms |
✅ 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 53ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.dressca.applicationcore.applicationservice.AssetApplicationServiceTest | 1✅ | 53ms |
✅ 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 557ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.dressca.web.controller.advice.ExceptionHandlerControllerAdviceTest | 3✅ | 557ms |
✅ 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 207ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.dressca.web.controller.advice.LocalExceptionHandlerControllerAdviceTest | 3✅ | 207ms |
✅ 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 426ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.dressca.web.controller.AssetsControllerTest | 2✅ | 426ms |
✅ 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 59ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.dressca.web.controller.HealthCheckTest | 2✅ | 59ms |
✅ 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 120ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.dressca.web.filter.BuyerIdFilterTest | 2✅ | 120ms |
✅ 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 904ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.dressca.web.WebApplicationTests | 1✅ | 904ms |
✅ com.dressca.web.WebApplicationTests
✅ contextLoads()