MLT-0049 Item Callback #40
Merged
GitHub Actions / JUnit Tests
succeeded
Oct 10, 2024 in 1s
47 passed, 0 failed and 1 skipped
✅ target/surefire-reports/TEST-no.nb.mlt.wls.ArchitectureTest.xml
4 tests were completed in 2s with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
no.nb.mlt.wls.ArchitectureTest | 4✅ | 2s |
✅ no.nb.mlt.wls.ArchitectureTest
✅ The infrastructure packages does not access any application classes
✅ The domain model does not have any outgoing dependencies
✅ The application layer does not access any adapters
✅ A adapter should not access another adapter
✅ target/surefire-reports/TEST-no.nb.mlt.wls.domain.WLSServiceTest.xml
19 tests were completed in 2s with 19 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
no.nb.mlt.wls.domain.WLSServiceTest | 19✅ | 2s |
✅ no.nb.mlt.wls.domain.WLSServiceTest
✅ addItem should not save new item but return existing item if it already exists
✅ deleteOrder should fail when order does not exist in WLS database
✅ updateOrder should fail when order does not exist
✅ getItem should return requested item when it exists in DB
✅ deleteOrder should fail when order does not exist in storage system
✅ createOrder should return existing order when trying to create one with same id and host
✅ getItem should return null if item does not exist
✅ getOrder should return null when order does not exists in DB
✅ moveItem should return when item successfully moves
✅ deleteOrder should complete when order exists
✅ moveItem throws when location is blank
✅ updateOrder should fail when items do not exist
✅ updateOrder with valid items should complete
✅ addItem should save and return new item when it does not exists
✅ moveItem should fail when item does not exist
✅ moveItem throws when count is invalid
✅ createOrder should fail if some of the items does not exist
✅ getOrder should return requested order when it exists in DB
✅ createOrder should save order in db and storage system
✅ target/surefire-reports/TEST-no.nb.mlt.wls.item.controller.ItemControllerTest.xml
5 tests were completed in 20s with 4 passed, 0 failed and 1 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
no.nb.mlt.wls.item.controller.ItemControllerTest | 4✅ | 1⚪ | 20s |
✅ no.nb.mlt.wls.item.controller.ItemControllerTest
✅ createItem with valid payload creates item
✅ createItem with duplicate payload returns OK
⚪ createItem where SynQ says it's a duplicate returns OK
✅ createItem handles SynQ error
✅ createItem payload with different data but same ID returns DB entry
✅ target/surefire-reports/TEST-no.nb.mlt.wls.item.model.ItemModelConversionTest.xml
3 tests were completed in 7ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
no.nb.mlt.wls.item.model.ItemModelConversionTest | 3✅ | 7ms |
✅ no.nb.mlt.wls.item.model.ItemModelConversionTest
✅ item converts to SynQ payload
✅ API payload converts to item
✅ item converts to API payload
✅ target/surefire-reports/TEST-no.nb.mlt.wls.order.controller.OrderControllerTest.xml
13 tests were completed in 565ms with 13 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
no.nb.mlt.wls.order.controller.OrderControllerTest | 13✅ | 565ms |
✅ no.nb.mlt.wls.order.controller.OrderControllerTest
✅ deleteOrder with valid data deletes order
✅ createOrder with duplicate payload returns OK
✅ updateOrder when order is being processed errors
✅ createOrder payload with different data but same ID returns DB entry
✅ createOrder with valid payload creates order
✅ updateOrder with valid payload updates order
✅ getOrder returns the order
✅ getOrder for wrong client throws
✅ deleteOrder handles synq error
✅ createOrder where SynQ says it's a duplicate but we don't have it in the DB returns Server error
✅ createOrder handles SynQ error
✅ updateOrder when order lines doesn't exists returns status 400
✅ updateOrder when order does not exists returns status 404 NOT FOUND
✅ target/surefire-reports/TEST-no.nb.mlt.wls.order.model.OrderModelConversionTest.xml
4 tests were completed in 5ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
no.nb.mlt.wls.order.model.OrderModelConversionTest | 4✅ | 5ms |
✅ no.nb.mlt.wls.order.model.OrderModelConversionTest
✅ order converts to API payload
✅ API payload converts to order
✅ order converts to Mongo Order payload
✅ order converts to SynQ payload
Loading