Skip to content

#882 create a shared project #335

#882 create a shared project

#882 create a shared project #335

GitHub Actions / Promotion-Service-Unit-Test-Results succeeded Sep 18, 2024 in 1s

10 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
promotion/target/surefire-reports/TEST-com.yas.promotion.controller.PromotionControllerTest.xml 6✅ 7s
promotion/target/surefire-reports/TEST-com.yas.promotion.service.PromotionServiceTest.xml 4✅ 9s

✅ promotion/target/surefire-reports/TEST-com.yas.promotion.controller.PromotionControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.promotion.controller.PromotionControllerTest 6✅ 7s

✅ com.yas.promotion.controller.PromotionControllerTest

✅ testCreatePromotion_whenNameIsOverMaxLength_thenReturnBadRequest
✅ testCreatePromotion_whenNameIsBlank_thenReturnBadRequest
✅ testCreatePromotion_whenDiscountPercentageIsGreaterThanHundred_thenReturnBadRequest
✅ testCreatePromotion_whenDiscountPercentageIsSmallerThanZero_thenReturnBadRequest
✅ testCreatePromotion_whenDiscountAmountIsSmallerThanZero_thenReturnBadRequest
✅ testCreatePromotion_whenRequestIsValid_thenReturnOk

✅ promotion/target/surefire-reports/TEST-com.yas.promotion.service.PromotionServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.promotion.service.PromotionServiceTest 4✅ 9s

✅ com.yas.promotion.service.PromotionServiceTest

✅ createPromotion_ThenSuccess
✅ createPromotion_WhenExistedSlug_ThenDuplicatedExceptionThrown
✅ getPromotionList_ThenSuccess
✅ createPromotion_WhenEndDateBeforeStartDate_ThenDateRangeExceptionThrown