Skip to content

#1198-update-the-order-checkout-payment-tables #423

#1198-update-the-order-checkout-payment-tables

#1198-update-the-order-checkout-payment-tables #423

GitHub Actions / Order-Service-Unit-Test-Results succeeded Oct 21, 2024 in 0s

45 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✅ 4s
order/target/failsafe-reports/TEST-com.yas.order.service.OrderServiceIT.xml 18✅ 58s
order/target/failsafe-reports/TEST-com.yas.order.service.ProductServiceIT.xml 5s
order/target/failsafe-reports/TEST-com.yas.order.service.ProductServiceIT$CircuitFallbackTest.xml 1✅ 3s
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✅ 830ms
order/target/surefire-reports/TEST-com.yas.order.controller.OrderControllerTest.xml 8✅ 3s
order/target/surefire-reports/TEST-com.yas.order.mapper.CheckoutMapperTest.xml 4✅ 100ms
order/target/surefire-reports/TEST-com.yas.order.service.CartServiceTest.xml 1✅ 30ms
order/target/surefire-reports/TEST-com.yas.order.service.CheckoutServiceTest.xml 5✅ 3s
order/target/surefire-reports/TEST-com.yas.order.service.CustomerServiceTest.xml 1✅ 2s
order/target/surefire-reports/TEST-com.yas.order.service.TaxServiceTest.xml 1✅ 18ms
order/target/surefire-reports/TEST-com.yas.order.utils.AuthenticationUtilsTest.xml 1✅ 6ms

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

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

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

✅ com.yas.order.service.CustomerServiceIT

✅ test_getCustomer_shouldThrowCallNotPermittedException_whenCircuitBreakerIsOpen

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

18 tests were completed in 58s with 18 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.order.service.OrderServiceIT 18✅ 58s

✅ com.yas.order.service.OrderServiceIT

✅ testGetOrderWithItemsById_whenNotFound_throwNotFoundException
✅ testGetLatestOrders_WhenCountIs0_returnEmpty
✅ testFindOrderByCheckoutId_whenNotFound_throwNotFoundException
✅ testRejectOrder_whenNormalCase_saveOrder
✅ testGetOrderWithItemsById_whenNormalCase_returnOrderVm
✅ testGetLatestOrders_WhenCountLessThen1_returnEmpty
✅ testGetLatestOrders_WhenHasListOrderListVm_returnListOrderListVm
✅ 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
✅ testGetLatestOrders_WhenProductsEmpty_returnEmpty

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

No tests found

Test suite Passed Failed Skipped Time
com.yas.order.service.ProductServiceIT 5s

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

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

Test suite Passed Failed Skipped Time
com.yas.order.service.ProductServiceIT$CircuitFallbackTest 1✅ 3s

✅ com.yas.order.service.ProductServiceIT$CircuitFallbackTest

✅ 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 830ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.order.controller.CheckoutControllerTest 3✅ 830ms

✅ 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

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

Test suite Passed Failed Skipped Time
com.yas.order.controller.OrderControllerTest 8✅ 3s

✅ com.yas.order.controller.OrderControllerTest

✅ testExportCsv_whenRequestIsValid_thenReturnCsvFile
✅ testUpdateOrderPaymentStatus_whenRequestIsValid_thenReturnPaymentOrderStatusVm
✅ testGetOrders_whenRequestIsValid_thenReturnOrderListVm
✅ testCreateOrder_whenRequestIsValid_thenReturnOrderVm
✅ testGetOrderWithItemsById_whenRequestIsValid_thenReturnOrderVm
✅ testCheckOrder_whenRequestIsValid_thenReturnOrderExistsByProductAndUserGetVm
✅ testGetLatestOrders_whenRequestIsValid_thenReturnOrderListVm
✅ testGetMyOrders_whenRequestIsValid_thenReturnOrderGetVm

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

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

Test suite Passed Failed Skipped Time
com.yas.order.mapper.CheckoutMapperTest 4✅ 100ms

✅ 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 30ms with 1 passed, 0 failed and 0 skipped.

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

✅ com.yas.order.service.CartServiceTest

✅ testDeleteCartItem_ifNormalCase_shouldNoException

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

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

Test suite Passed Failed Skipped Time
com.yas.order.service.CheckoutServiceTest 5✅ 3s

✅ com.yas.order.service.CheckoutServiceTest

✅ testGetCheckoutPendingStateWithItemsById_whenNormalCase_returnCheckoutVm
✅ testGetCheckoutPendingStateWithItemsById_whenNotEqualsCreateBy_throwForbidden
✅ testCreateCheckout_whenNormalCase_returnCheckout
✅ testGetCheckoutPendingStateWithItemsById_whenNormalCase_returnCheckoutVmWithoutCheckoutItems
✅ testCreateCheckout_whenCheckoutItemsIsEmpty_returnCheckoutWithoutCheckoutItems

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

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

Test suite Passed Failed Skipped Time
com.yas.order.service.CustomerServiceTest 1✅ 2s

✅ com.yas.order.service.CustomerServiceTest

✅ testGetCustomer_ifNormalCase_returnCustomerVm

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

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

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

✅ com.yas.order.service.TaxServiceTest

✅ testGetTaxPercentByAddress_ifNormalCase_returnCustomerVm

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

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

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

✅ com.yas.order.utils.AuthenticationUtilsTest

✅ testGetCurrentUserId_existsCurrentUserId_returnCurrentUserId