Skip to content
GitHub Actions / Inventory-Service-Test-Results succeeded Oct 30, 2024 in 1s

54 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
inventory/target/failsafe-reports/TEST-com.yas.inventory.repository.StockHistoryRepositoryIT.xml 1✅ 55ms
inventory/target/failsafe-reports/TEST-com.yas.inventory.repository.StockRepositoryIT.xml 2✅ 51s
inventory/target/failsafe-reports/TEST-com.yas.inventory.repository.WarehouseRepositoryIT.xml 4✅ 133ms
inventory/target/failsafe-reports/TEST-com.yas.inventory.service.LocationServiceIT.xml 2✅ 6s
inventory/target/failsafe-reports/TEST-com.yas.inventory.service.ProductServiceIT.xml 2✅ 9s
inventory/target/failsafe-reports/TEST-com.yas.inventory.service.StockHistoryServiceIT.xml 3✅ 104ms
inventory/target/failsafe-reports/TEST-com.yas.inventory.service.StockServiceIT.xml 7✅ 126ms
inventory/target/failsafe-reports/TEST-com.yas.inventory.service.WarehouseServiceIT.xml 10✅ 883ms
inventory/target/surefire-reports/TEST-com.yas.inventory.controller.StockControllerTest.xml 3✅ 4s
inventory/target/surefire-reports/TEST-com.yas.inventory.controller.StockHistoryControllerTest.xml 1✅ 519ms
inventory/target/surefire-reports/TEST-com.yas.inventory.controller.WarehouseControllerTest.xml 12✅ 629ms
inventory/target/surefire-reports/TEST-com.yas.inventory.service.LocationServiceTest.xml 4✅ 155ms
inventory/target/surefire-reports/TEST-com.yas.inventory.service.ProductServiceTest.xml 3✅ 2s

✅ inventory/target/failsafe-reports/TEST-com.yas.inventory.repository.StockHistoryRepositoryIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.inventory.repository.StockHistoryRepositoryIT 1✅ 55ms

✅ com.yas.inventory.repository.StockHistoryRepositoryIT

✅ testFindByProductIdAndWarehouseIdOrderByCreatedOnDesc_ifStockHistoryExists_shouldReturnData

✅ inventory/target/failsafe-reports/TEST-com.yas.inventory.repository.StockRepositoryIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.inventory.repository.StockRepositoryIT 2✅ 51s

✅ com.yas.inventory.repository.StockRepositoryIT

✅ testGetProductIdsInWarehouse_ifWarehouseExists_shouldReturnProductId
✅ testFindByWarehouseIdAndProductIdIn_ifStockExists_shouldReturnStock

✅ inventory/target/failsafe-reports/TEST-com.yas.inventory.repository.WarehouseRepositoryIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.inventory.repository.WarehouseRepositoryIT 4✅ 133ms

✅ com.yas.inventory.repository.WarehouseRepositoryIT

✅ testExistsByNameWithDifferentId_ifWarehouseWithSameNameNotExistsWithDifferentId_shouldReturnFalse
✅ testExistsByName_ifWarehouseExistsWithDifferentId_shouldReturnTrue
✅ testExistsByNameWithDifferentId_ifWarehouseWithSameNameExistsWithDifferentId_shouldReturnTrue
✅ testExistsByName_WithDifferentId_ifWarehouseDoesNotExist_shouldReturnFalse

✅ inventory/target/failsafe-reports/TEST-com.yas.inventory.service.LocationServiceIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.inventory.service.LocationServiceIT 2✅ 6s

✅ com.yas.inventory.service.LocationServiceIT

✅ test_createAddress_shouldThrowCallNotPermittedException_whenCircuitBreakerIsOpen
✅ test_getAddressById_shouldThrowCallNotPermittedException_whenCircuitBreakerIsOpen

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

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

Test suite Passed Failed Skipped Time
com.yas.inventory.service.ProductServiceIT 2✅ 9s

✅ com.yas.inventory.service.ProductServiceIT

✅ test_filterProducts_shouldThrowCallNotPermittedException_whenCircuitBreakerIsOpen
✅ test_getProduct_shouldThrowCallNotPermittedException_whenCircuitBreakerIsOpen

✅ inventory/target/failsafe-reports/TEST-com.yas.inventory.service.StockHistoryServiceIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.inventory.service.StockHistoryServiceIT 3✅ 104ms

✅ com.yas.inventory.service.StockHistoryServiceIT

✅ testGetStockHistories_whenStockQuantityVmNotNull_returnStockHistoryListVm
✅ testCreateStockHistories_whenStockQuantityVmNotNull_saveStockHistories
✅ testCreateStockHistories_whenStockQuantityVmNull_saveStockHistoriesEmpty

✅ inventory/target/failsafe-reports/TEST-com.yas.inventory.service.StockServiceIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.inventory.service.StockServiceIT 7✅ 126ms

✅ com.yas.inventory.service.StockServiceIT

✅ testAddProductIntoWarehouse_whenNotFound_throwNotFoundException
✅ testUpdateProductQuantityInStock_whenNormalCase_shouldSavingSuccess
✅ testAddProductIntoWarehouse_whenExistingInStockIsTrue_throwsStockExistingException
✅ testAddProductIntoWarehouse_whenWarehouseNotFound_throwNotFoundException
✅ testGetStocksByWarehouseIdAndProductNameAndSku_whenNormalCase_returnListStockVm
✅ testAddProductIntoWarehouse_whenNormalCase_shouldSavingSuccess
✅ testUpdateProductQuantityInStock_isInvalidAdjustedQuantity_throwBadRequestException

✅ inventory/target/failsafe-reports/TEST-com.yas.inventory.service.WarehouseServiceIT.xml

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

Test suite Passed Failed Skipped Time
com.yas.inventory.service.WarehouseServiceIT 10✅ 883ms

✅ com.yas.inventory.service.WarehouseServiceIT

✅ testDelete_NormalCase_MethodSuccess
✅ testFindById_whenNotFound_throwNotFoundException
✅ testCreate_NormalCase_MethodSuccess
✅ testUpdate_Duplicated_throwDuplicatedException
✅ testUpdate_NormalCase_MethodSuccess
✅ testGetProductWarehouse_NormalCase_MethodSuccess
✅ testFindAllWarehouses_NormalCase_MethodSuccess
✅ testGetPageableWarehouses_NormalCase_MethodSuccess
✅ testCreate_Duplicated_ThrowDuplicatedException
✅ testFindById_NormalCase_MethodSuccess

✅ inventory/target/surefire-reports/TEST-com.yas.inventory.controller.StockControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.inventory.controller.StockControllerTest 3✅ 4s

✅ com.yas.inventory.controller.StockControllerTest

✅ testAddProductIntoWarehouse_whenRequestIsValid_thenReturnNoContent
✅ testUpdateProductQuantityInStock_whenRequestIsValid_thenReturnOk
✅ testGetStocksByWarehouseIdAndProductNameAndSku_whenParametersAreProvided_thenReturnStocks

✅ inventory/target/surefire-reports/TEST-com.yas.inventory.controller.StockHistoryControllerTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.inventory.controller.StockHistoryControllerTest 1✅ 519ms

✅ com.yas.inventory.controller.StockHistoryControllerTest

✅ testGetStockHistories_whenParametersAreValid_thenReturnStockHistories

✅ inventory/target/surefire-reports/TEST-com.yas.inventory.controller.WarehouseControllerTest.xml

12 tests were completed in 629ms with 12 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.yas.inventory.controller.WarehouseControllerTest 12✅ 629ms

✅ com.yas.inventory.controller.WarehouseControllerTest

✅ testUpdateWarehouse_whenDistrictIsNull_thenReturnBadRequest
✅ testUpdateWarehouse_whenRequestIsValid_thenReturn204
✅ testGetProductByWarehouse_whenValidRequest_thenReturnProducts
✅ testUpdateWarehouse_whenPhoneIsOverMaxLength_thenReturnBadRequest
✅ testCreateWarehouse_whenPhoneIsOverMaxLength_thenReturnBadRequest
✅ testListWarehouses_whenWarehousesExist_thenReturnListOfWarehouses
✅ testCreateWarehouse_whenRequestIsValid_thenReturn201
✅ testGetPageableWarehouses_whenValidRequest_thenReturnPagedWarehouses
✅ testUpdateWarehouse_whenContactNameIsBlank_thenReturnBadRequest
✅ testGetWarehouse_whenWarehouseExists_thenReturnWarehouseDetails
✅ testCreateWarehouse_whenContactNameIsBlank_thenReturnBadRequest
✅ testCreateWarehouse_whenDistrictIsNull_thenReturnBadRequest

✅ inventory/target/surefire-reports/TEST-com.yas.inventory.service.LocationServiceTest.xml

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

Test suite Passed Failed Skipped Time
com.yas.inventory.service.LocationServiceTest 4✅ 155ms

✅ com.yas.inventory.service.LocationServiceTest

✅ testGetAddressById_ifNormalCase_returnAddressDetailVm
✅ testUpdateAddress_ifNormalCase_shouldNoException
✅ testCreateAddress_ifNormalCase_returnAddressVm
✅ testDeleteAddress_ifNormalCase_shouldNoException

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

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

Test suite Passed Failed Skipped Time
com.yas.inventory.service.ProductServiceTest 3✅ 2s

✅ com.yas.inventory.service.ProductServiceTest

✅ testFilterProducts_whenNormalCase_returnListProductInfoVm
✅ testGetProduct_whenNormalCase_returnProductInfoVm
✅ testUpdateProductQuantity_whenNormalCase_shouldNoException