Skip to content

Handle FE Product Template #661

Handle FE Product Template

Handle FE Product Template #661

GitHub Actions / Product-Service-Unit-Test-Results succeeded Oct 18, 2023 in 0s

Product-Service-Unit-Test-Results ✅

Tests passed successfully

Report Passed Failed Skipped Time
product/target/surefire-reports/TEST-com.yas.product.controller.BrandControllerTest.xml 9✅ 248ms
product/target/surefire-reports/TEST-com.yas.product.controller.CategoryControllerTest.xml 6✅ 176ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductAttributeControllerTest.xml 11✅ 69ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductAttributeValueControllerTest.xml 8✅ 431ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductOptionControllerTest.xml 7✅ 185ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductOptionValueControllerTest.xml 3✅ 2s
product/target/surefire-reports/TEST-com.yas.product.model.ProductTest.xml 1✅ 1ms
product/target/surefire-reports/TEST-com.yas.product.service.CategoryServiceTest.xml 2✅ 10ms
product/target/surefire-reports/TEST-com.yas.product.service.ProductServiceTest.xml 16✅ 686ms

✅ product/target/surefire-reports/TEST-com.yas.product.controller.BrandControllerTest.xml

9 tests were completed in 248ms with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.product.controller.BrandControllerTest 9✅ 248ms

✅ com.yas.product.controller.BrandControllerTest

✅ createBrand_SaveBrandPostVm_Success
✅ getBrand_FindIdBrand_Success
✅ getBrand_FindIdBrand_ThrowException
✅ updateBrand_UpdateBrand_Success
✅ deleteBrand_ValidCategory_Success
✅ deleteBrand_CategoryContainsProducts_ThrowBadRequestException
✅ updateBrand_FindIdBrandUpdate_ThrowException
✅ listBrands_ReturnList_Success
✅ deleteBrand_NotFoundCategory_ThrowNotFoundException

✅ product/target/surefire-reports/TEST-com.yas.product.controller.CategoryControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.CategoryControllerTest 6✅ 176ms

✅ com.yas.product.controller.CategoryControllerTest

✅ ListCategories_ValidListCategoryGetVM_Success
✅ createCategory_ValidCategoryWithNotFoundParentId_ThrowNotFoundException
✅ getCategory_ValidCategoryGetDetailVM_Success
✅ getCategory_NotFoundCategoryGetDetailVM_ThrowNotFoundException
✅ createCategory_ValidCategoryWithOutParentId_Success
✅ createCategory_ValidCategoryWithParentId_Success

✅ product/target/surefire-reports/TEST-com.yas.product.controller.ProductAttributeControllerTest.xml

11 tests were completed in 69ms with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductAttributeControllerTest 11✅ 69ms

✅ com.yas.product.controller.ProductAttributeControllerTest

✅ getProductAttribute_FindProductAttribute_Success
✅ updateProductAttribute_FindIdProductAttribute_ThrowException
✅ getProductAttribute_FinProductAttributeById_ThrowException
✅ deleteProductAttribute_givenProductAttributeIdInvalid_thenThrowNotFoundException
✅ createProductAttribute_ValidProductAttributeWithIdProductAttributeGroup_Success
✅ createProductAttribute_FindIdProductAttributeGroup_ThrowException
✅ updateProductAttribute_ValidProductAttributePostVmWithProductAttributeGroupId_Success
✅ updateProductAttribute_FindProductAttributeGroupId_ThrowException
✅ deleteProductAttribute_givenProductAttributeIdValid_thenSuccess
✅ listProductAttributes_ValidListProductAttributeGetVm_Success
✅ deleteProductAttribute_givenProductAttributeIdContainProductAttributeValue_thenThrowBadRequestException

✅ product/target/surefire-reports/TEST-com.yas.product.controller.ProductAttributeValueControllerTest.xml

8 tests were completed in 431ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductAttributeValueControllerTest 8✅ 431ms

✅ com.yas.product.controller.ProductAttributeValueControllerTest

✅ updateProductAttributeValue_ProductAttributeValueIdIsInValid_NotFoundException
✅ listProductAttributeValuesByProductId_ReturnListProductAttributeValueGetVms_Success
✅ createProductAttributeValue_ProductIdIsInValid_BadRequestException
✅ createProductAttributeValue_ProductAttributeIdIsInValid_BadRequestException
✅ createProductAttributeValue_ReturnProductAttributeValueVm_Success
✅ listProductAttributeValuesByProductId_ProductIdIsInvalid_BadRequestException
✅ updateProductAttributeValue_ProductAttributeValueIdIsValid_Success
✅ deleteProductAttributeValueById_ProductAttributeValueIdIsInValid_Success

✅ product/target/surefire-reports/TEST-com.yas.product.controller.ProductOptionControllerTest.xml

7 tests were completed in 185ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductOptionControllerTest 7✅ 185ms

✅ com.yas.product.controller.ProductOptionControllerTest

✅ getProductOption_ReturnProductOptionGetVm_Success
✅ createProductOption_VaildProductOptionPostVm_Success
✅ updateProductOption_ProductOptionIdIsInvalid_ThrowNotFoundException
✅ getProductOption_ProductOptionIdIsInvalid_ThrowNotFoundException
✅ listProductOption_ReturnListProductOption_Success
✅ updateProductOption_ProductOptionIdIsValid_Success
✅ deleteProductOption_givenProductOptionIdValid_thenSuccess

✅ product/target/surefire-reports/TEST-com.yas.product.controller.ProductOptionValueControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductOptionValueControllerTest 3✅ 2s

✅ com.yas.product.controller.ProductOptionValueControllerTest

✅ listProductOptionValues_ReturnListProductOptionValueGetVm_Success
✅ listProductOptionValueOfProduct_ProductIdIsInvalid_ThrowNotFoundException
✅ listProductOptionValueOfProduct_ProductIdIsValid_Success

✅ product/target/surefire-reports/TEST-com.yas.product.model.ProductTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.model.ProductTest 1✅ 1ms

✅ com.yas.product.model.ProductTest

✅ equalsVerifier

✅ product/target/surefire-reports/TEST-com.yas.product.service.CategoryServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.product.service.CategoryServiceTest 2✅ 10ms

✅ com.yas.product.service.CategoryServiceTest

✅ getCategoryById_Success
✅ getCategories_Success

✅ product/target/surefire-reports/TEST-com.yas.product.service.ProductServiceTest.xml

16 tests were completed in 686ms with 16 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.product.service.ProductServiceTest 16✅ 686ms

✅ com.yas.product.service.ProductServiceTest

✅ getFeaturedProducts_WhenEverythingIsOkay_Success
✅ getProductsFromCategory_CategoryIsNonExist_ThrowsNotFoundException
✅ getProductsFromCategory_WhenFindAllByCategory_ThenSuccess
✅ getProductsWithFilter_WhenFilterByBrandName_ThenSuccess
✅ getListFeaturedProductsByListProductIds_whenAllProductIdsValid_shouldSuccess
✅ deleteProductAttribute_givenProductAttributeIdInvalid_thenThrowNotFoundException
✅ getProductsByMultiQuery_WhenFilterByBrandNameAndProductName_ThenSuccess
✅ getProduct_whenProductIdInvalid_shouldThrowException
✅ getProductsByBrand_BrandIsNonExist_ThrowsNotFoundException
✅ deleteProduct_givenProductIdValid_thenSuccess
✅ getProductsWithFilter_WhenFilterByBrandNameAndProductName_ThenSuccess
✅ getProductsWithFilter_whenFindAll_thenSuccess
✅ getProduct_whenProductIdValid_shouldSuccess
✅ getFeaturedProductsById_whenProductIdInvalid_shouldThrowException
✅ getProductsWithFilter_WhenFilterByProductName_ThenSuccess
✅ getProductsByBrand_BrandSlugIsValid_Success