Unit test Product Template Service #673
GitHub Actions / Product-Service-Unit-Test-Results
succeeded
Oct 30, 2023 in 1s
Product-Service-Unit-Test-Results ✅
✅ product/target/surefire-reports/TEST-com.yas.product.controller.BrandControllerTest.xml
9 tests were completed in 214ms with 9 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.product.controller.BrandControllerTest | 9✅ | 214ms |
✅ 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 303ms with 6 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.product.controller.CategoryControllerTest | 6✅ | 303ms |
✅ 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 61ms with 11 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.product.controller.ProductAttributeControllerTest | 11✅ | 61ms |
✅ 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 177ms with 8 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.product.controller.ProductAttributeValueControllerTest | 8✅ | 177ms |
✅ 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 130ms with 7 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.product.controller.ProductOptionControllerTest | 7✅ | 130ms |
✅ 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 113ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.product.model.ProductTest | 1✅ | 113ms |
✅ com.yas.product.model.ProductTest
✅ equalsVerifier
✅ product/target/surefire-reports/TEST-com.yas.product.service.CategoryServiceTest.xml
2 tests were completed in 35ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.product.service.CategoryServiceTest | 2✅ | 35ms |
✅ 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 450ms with 16 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.product.service.ProductServiceTest | 16✅ | 450ms |
✅ 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
✅ product/target/surefire-reports/TEST-com.yas.product.service.ProductTemplateServiceTest.xml
8 tests were completed in 561ms with 8 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.yas.product.service.ProductTemplateServiceTest | 8✅ | 561ms |
✅ com.yas.product.service.ProductTemplateServiceTest
✅ saveProductTemplate_WhenDuplicateName_ThenThrowDuplicatedException
✅ getPageableProductTemplate_WhenGetPageable_thenSuccess
✅ updateProductTemplate_WhenIdProductTemplateNotExist_ThenThrowNotFoundException
✅ saveProductTemplate_WhenProductTemplatePostVm_ThenSuccess
✅ saveProductTemplate_WhenProductAttributesMissId_ThenThrowBadRequestException
✅ saveProductTemplate_WhenProductAttributesNull_ThenThrowBadRequestException
✅ getProductTemplate_WhenIdProductTemplateValid_thenSuccess
✅ getProductTemplate_WhenIdProductTemplateNotExit_ThrowsNotFoundException
Loading