Skip to content
GitHub Actions / Product-Service-Unit-Test-Results succeeded Jul 15, 2024 in 0s

79 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
product/target/surefire-reports/TEST-com.yas.product.controller.BrandControllerTest.xml 10✅ 225ms
product/target/surefire-reports/TEST-com.yas.product.controller.CategoryControllerTest.xml 7✅ 140ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductAttributeControllerTest.xml 11✅ 250ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductAttributeGroupControllerTest.xml 9✅ 178ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductAttributeValueControllerTest.xml 8✅ 369ms
product/target/surefire-reports/TEST-com.yas.product.controller.ProductOptionControllerTest.xml 7✅ 10s
product/target/surefire-reports/TEST-com.yas.product.controller.ProductOptionValueControllerTest.xml 3✅ 104ms
product/target/surefire-reports/TEST-com.yas.product.service.CategoryServiceTest.xml 2✅ 4s
product/target/surefire-reports/TEST-com.yas.product.service.ProductServiceTest.xml 15✅ 700ms
product/target/surefire-reports/TEST-com.yas.product.service.ProductTemplateServiceTest.xml 7✅ 2s

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

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.BrandControllerTest 10✅ 225ms

✅ com.yas.product.controller.BrandControllerTest

✅ createBrand_SaveBrandPostVm_Success
✅ getBrand_FindIdBrand_Success
✅ updateBrand_FindIdBrandUpdate_404NotFound
✅ updateBrand_UpdateBrand_Success
✅ getBrand_FindIdBrand_Return404NotFound
✅ deleteBrand_ValidCategory_Success
✅ deleteBrand_CategoryContainsProducts_400BadRequest
✅ deleteBrand_NotFoundCategory_404NotFound
✅ listBrands_StoreFrontReturnList_Success
✅ listBrands_BackOfficeReturnList_Success

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

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.CategoryControllerTest 7✅ 140ms

✅ com.yas.product.controller.CategoryControllerTest

✅ getListCategories_StoreFront_Success
✅ getCategory_ValidCategoryGetDetailVM_Success
✅ createCategory_ValidCategoryWithNotFoundParentId_400BadRequest
✅ createCategory_ValidCategoryWithOutParentId_Success
✅ createCategory_ValidCategoryWithParentId_Success
✅ getCategory_NotFoundCategoryGetDetailVM_404NotFound
✅ getListCategories_Backoffice_Success

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

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

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

✅ com.yas.product.controller.ProductAttributeControllerTest

✅ getProductAttribute_FindProductAttribute_Success
✅ getProductAttribute_FinProductAttributeById_404NotFound
✅ createProductAttribute_ValidProductAttributeWithIdProductAttributeGroup_Success
✅ deleteProductAttribute_givenProductAttributeIdContainProductAttributeValue_thenReturn400BadRequest
✅ deleteProductAttribute_givenProductAttributeIdInvalid_thenReturn404NotFound
✅ updateProductAttribute_ValidProductAttributePostVmWithProductAttributeGroupId_Success
✅ updateProductAttribute_FindProductAttributeGroupId_400BadRequest
✅ deleteProductAttribute_givenProductAttributeIdValid_thenSuccess
✅ listProductAttributes_ValidListProductAttributeGetVm_Success
✅ updateProductAttribute_FindIdProductAttribute_404NotFound
✅ createProductAttribute_FindIdProductAttributeGroup_400BadRequest

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

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductAttributeGroupControllerTest 9✅ 178ms

✅ com.yas.product.controller.ProductAttributeGroupControllerTest

✅ getProductAttributeGroup_ProductAttributeGroupIdIsInvalid_Return404NotFound
✅ getProductAttributeGroup_ReturnProductAttributeGroupVm_Success
✅ deleteProductAttributeGroup_givenProductAttributeGroupIsValid_thenSuccess
✅ updateProductAttributeGroup_ProductAttributeGroupIdIsInvalid_Return404NotFound
✅ updateProductAttributeGroup_ProductAttributeGroupIdIsValid_Success
✅ updateProductAttributeGroup_ProductAttributeGroupNamIsEmpty_Return400BadRequest
✅ createProductAttributeGroup_NameIsEmpty_Return400BadRequest
✅ createProductAttributeGroup_ReturnProductAttributeGroupVm_Success
✅ listProductAttributeGroups_ReturnListProductAttributeGroupVm_Success

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

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

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

✅ com.yas.product.controller.ProductAttributeValueControllerTest

✅ listProductAttributeValuesByProductId_ProductIdIsInvalid_Return400BadRequest
✅ listProductAttributeValuesByProductId_ReturnListProductAttributeValueGetVms_Success
✅ createProductAttributeValue_ReturnProductAttributeValueVm_Success
✅ createProductAttributeValue_ProductIdIsInValid_Return400BadRequest
✅ updateProductAttributeValue_ProductAttributeValueIdIsValid_Success
✅ createProductAttributeValue_ProductAttributeIdIsInValid_Return400BadRequest
✅ updateProductAttributeValue_ProductAttributeValueIdIsInValid_Return404NotFound
✅ deleteProductAttributeValueById_ProductAttributeValueIdIsInValid_Success

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

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductOptionControllerTest 7✅ 10s

✅ com.yas.product.controller.ProductOptionControllerTest

✅ getProductOption_ReturnProductOptionGetVm_Success
✅ createProductOption_VaildProductOptionPostVm_Success
✅ getProductOption_ProductOptionIdIsInvalid_Return404NotFound
✅ listProductOption_ReturnListProductOption_Success
✅ updateProductOption_ProductOptionIdIsValid_Success
✅ deleteProductOption_givenProductOptionIdValid_thenSuccess
✅ updateProductOption_ProductOptionIdIsInvalid_Return404NotFound

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

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

Test suite Passed Failed Skipped Time
com.yas.product.controller.ProductOptionValueControllerTest 3✅ 104ms

✅ com.yas.product.controller.ProductOptionValueControllerTest

✅ listProductOptionValues_ReturnListProductOptionValueGetVm_Success
✅ listProductOptionValueOfProduct_ProductIdIsValid_Success
✅ listProductOptionValueOfProduct_ProductIdIsInvalid_Return404NotFound

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

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

Test suite Passed Failed Skipped Time
com.yas.product.service.CategoryServiceTest 2✅ 4s

✅ com.yas.product.service.CategoryServiceTest

✅ getCategoryById_Success
✅ getCategories_Success

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

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

Test suite Passed Failed Skipped Time
com.yas.product.service.ProductServiceTest 15✅ 700ms

✅ com.yas.product.service.ProductServiceTest

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

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

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

Test suite Passed Failed Skipped Time
com.yas.product.service.ProductTemplateServiceTest 7✅ 2s

✅ com.yas.product.service.ProductTemplateServiceTest

✅ saveProductTemplate_WhenDuplicateName_ThenThrowDuplicatedException
✅ getPageableProductTemplate_WhenGetPageable_thenSuccess
✅ updateProductTemplate_WhenIdProductTemplateNotExist_ThenThrowNotFoundException
✅ saveProductTemplate_WhenProductTemplatePostVm_ThenSuccess
✅ getProductTemplate_WhenIdProductTemplateValid_thenSuccess
✅ saveProductTemplate_WhenProductAttributesNotFound_ThenThrowBadRequestException
✅ getProductTemplate_WhenIdProductTemplateNotExit_ThrowsNotFoundException