Skip to content

#882 Create a shared project #145

#882 Create a shared project

#882 Create a shared project #145

GitHub Actions / Order-Service-Unit-Test-Results succeeded Sep 26, 2024 in 1s

35 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
order/target/failsafe-reports/TEST-com.yas.order.service.CustomerServiceIT.xml 1✅ 5s
order/target/failsafe-reports/TEST-com.yas.order.service.OrderServiceIT.xml 14✅ 31s
order/target/failsafe-reports/TEST-com.yas.order.service.ProductServiceIT.xml 1✅ 30s
order/target/failsafe-reports/TEST-com.yas.order.service.TaxServiceIT.xml 1✅ 6s
order/target/surefire-reports/TEST-com.yas.order.controller.CheckoutControllerTest.xml 3✅ 4s
order/target/surefire-reports/TEST-com.yas.order.controller.OrderControllerTest.xml 6✅ 2s
order/target/surefire-reports/TEST-com.yas.order.mapper.CheckoutMapperTest.xml 4✅ 3s
order/target/surefire-reports/TEST-com.yas.order.service.CartServiceTest.xml 1✅ 14ms
order/target/surefire-reports/TEST-com.yas.order.service.CheckoutServiceTest.xml 1✅ 257ms
order/target/surefire-reports/TEST-com.yas.order.service.CustomerServiceTest.xml 1✅ 15ms
order/target/surefire-reports/TEST-com.yas.order.service.TaxServiceTest.xml 1✅ 312ms
order/target/surefire-reports/TEST-com.yas.order.utils.AuthenticationUtilsTest.xml 1✅ 659ms

✅ order/target/failsafe-reports/TEST-com.yas.order.service.CustomerServiceIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.order.service.CustomerServiceIT 1✅ 5s

✅ com.yas.order.service.CustomerServiceIT

✅ test_getCustomer_shouldThrowCallNotPermittedException_whenCircuitBreakerIsOpen

✅ order/target/failsafe-reports/TEST-com.yas.order.service.OrderServiceIT.xml

14 tests were completed in 31s with 14 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.order.service.OrderServiceIT 14✅ 31s

✅ com.yas.order.service.OrderServiceIT

✅ testGetOrderWithItemsById_whenNotFound_throwNotFoundException
✅ testFindOrderByCheckoutId_whenNotFound_throwNotFoundException
✅ testRejectOrder_whenNormalCase_saveOrder
✅ testGetOrderWithItemsById_whenNormalCase_returnOrderVm
✅ testUpdateOrderPaymentStatus_whenPaymentStatusNotCompleted_returnPaymentOrderStatusVm
✅ testUpdateOrderPaymentStatus_whenNotFound_throwNotFoundException
✅ testGetAllOrder_whenOrderPageIsEmpty_returnOrderListVm
✅ testGetAllOrder_whenNormalCase_returnOrderListVm
✅ testRejectOrder_whenNotFound_throwNotFoundException
✅ testFindOrderByCheckoutId_whenNormalCase_returnOrder
✅ testAcceptOrder_whenNotFound_throwNotFoundException
✅ testCreateOrder_successful
✅ testUpdateOrderPaymentStatus_whenNormalCase_returnPaymentOrderStatusVm
✅ testAcceptOrder_whenNormalCase_saveOrder

✅ order/target/failsafe-reports/TEST-com.yas.order.service.ProductServiceIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.order.service.ProductServiceIT 1✅ 30s

✅ com.yas.order.service.ProductServiceIT

✅ test_getProductVariations_shouldThrowCallNotPermittedException_whenCircuitBreakerIsOpen

✅ order/target/failsafe-reports/TEST-com.yas.order.service.TaxServiceIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.order.service.TaxServiceIT 1✅ 6s

✅ com.yas.order.service.TaxServiceIT

✅ test_getTaxPercentByAddress_shouldThrowCallNotPermittedException_whenCircuitBreakerIsOpen

✅ order/target/surefire-reports/TEST-com.yas.order.controller.CheckoutControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.order.controller.CheckoutControllerTest 3✅ 4s

✅ com.yas.order.controller.CheckoutControllerTest

✅ testGetOrderWithItemsById_whenRequestIsValid_thenReturnCheckoutVm
✅ testUpdateCheckoutStatus_whenRequestIsValid_thenReturnLong
✅ testCreateCheckout_whenRequestIsValid_thenReturnCheckoutVm

✅ order/target/surefire-reports/TEST-com.yas.order.controller.OrderControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.order.controller.OrderControllerTest 6✅ 2s

✅ com.yas.order.controller.OrderControllerTest

✅ testUpdateOrderPaymentStatus_whenRequestIsValid_thenReturnPaymentOrderStatusVm
✅ testGetOrders_whenRequestIsValid_thenReturnOrderListVm
✅ testCreateOrder_whenRequestIsValid_thenReturnOrderVm
✅ testGetOrderWithItemsById_whenRequestIsValid_thenReturnOrderVm
✅ testCheckOrder_whenRequestIsValid_thenReturnOrderExistsByProductAndUserGetVm
✅ testGetMyOrders_whenRequestIsValid_thenReturnOrderGetVm

✅ order/target/surefire-reports/TEST-com.yas.order.mapper.CheckoutMapperTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.order.mapper.CheckoutMapperTest 4✅ 3s

✅ com.yas.order.mapper.CheckoutMapperTest

✅ testCheckoutItemToVm_convertCheckoutItemCorrectly
✅ testCheckoutItemPostVmToModel_convertToCorrectCheckoutItem
✅ testCheckoutPostVmToModel_convertToCorrectCheckout
✅ testCheckoutToVm_convertToCheckoutVmCorrectly

✅ order/target/surefire-reports/TEST-com.yas.order.service.CartServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.order.service.CartServiceTest 1✅ 14ms

✅ com.yas.order.service.CartServiceTest

✅ testDeleteCartItem_ifNormalCase_shouldNoException

✅ order/target/surefire-reports/TEST-com.yas.order.service.CheckoutServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.order.service.CheckoutServiceTest 1✅ 257ms

✅ com.yas.order.service.CheckoutServiceTest

✅ createCheckout

✅ order/target/surefire-reports/TEST-com.yas.order.service.CustomerServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.order.service.CustomerServiceTest 1✅ 15ms

✅ com.yas.order.service.CustomerServiceTest

✅ testGetCustomer_ifNormalCase_returnCustomerVm

✅ order/target/surefire-reports/TEST-com.yas.order.service.TaxServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.order.service.TaxServiceTest 1✅ 312ms

✅ com.yas.order.service.TaxServiceTest

✅ testGetTaxPercentByAddress_ifNormalCase_returnCustomerVm

✅ order/target/surefire-reports/TEST-com.yas.order.utils.AuthenticationUtilsTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.order.utils.AuthenticationUtilsTest 1✅ 659ms

✅ com.yas.order.utils.AuthenticationUtilsTest

✅ testGetCurrentUserId_existsCurrentUserId_returnCurrentUserId