Skip to content

Commit

Permalink
#29 verify that details of RO are exposed
Browse files Browse the repository at this point in the history
  • Loading branch information
openwms committed Aug 12, 2023
1 parent 2497a76 commit e9cd234
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ void setUp(RestDocumentationContextProvider restDocumentation) {
)
.andExpect(status().isOk())
.andExpect(jsonPath("$.details.length()", equalTo(2)))
.andExpect(jsonPath("$.positions[0].details.length()", equalTo(3)))
.andDo(document("order-find",
preprocessResponse(prettyPrint()),
responseFields(
Expand All @@ -99,6 +100,8 @@ void setUp(RestDocumentationContextProvider restDocumentation) {
fieldWithPath("positions[].quantityReceived.magnitude").description("The received quantity amount"),
fieldWithPath("positions[].quantityReceived.unitType").description("The received quantity type"),
fieldWithPath("positions[].quantityReceived.*").ignored(),
fieldWithPath("positions[].details").optional().description("Stores arbitrary detail information according to the ReceivingOrderPosition"),
fieldWithPath("positions[].details.*").optional().ignored(),
fieldWithPath("positions[].transportUnitBK").optional().description("The business key of the captured TransportUnit"),
fieldWithPath("positions[].transportUnitTypeName").optional().description("The name of the captured TransportUnitType"),
fieldWithPath("positions[].product").optional().description("The expected Product to be received"),
Expand Down
5 changes: 3 additions & 2 deletions src/test/resources/import-TEST.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ insert into WMS_REC_ORDER_POS_PRODUCT (c_pk,c_order_id,c_pos_no,c_state,c_qty_ex
insert into WMS_REC_ORDER_POS_PRODUCT (c_pk,c_order_id,c_pos_no,c_state,c_qty_expected_type,c_qty_expected,c_qty_received_type,c_qty_received,c_sku,c_ol,c_created,c_created_by) values (1001,'T4711','2','CREATED','DOZ@org.openwms.core.units.api.Piece','2','PC@org.openwms.core.units.api.Piece','0','C2',0,now(), 'SYSTEM');
insert into WMS_REC_ORDER_POS_TU (c_pk,c_order_id,c_pos_no,c_state,c_latest_due,c_transport_unit_bk,c_transport_unit_type_name,c_ol,c_created,c_created_by) values (1002,'T4711','3','CREATED', now(), '00000000000000004712','EURO',0,now(), 'SYSTEM');

--insert into WMS_REC_ORDER_POSITION_DETAIL (c_order_pos_pk, c_key, c_value) values (1000, 'Unload', 'Unload carefully');
--insert into WMS_REC_ORDER_POSITION_DETAIL (c_order_pos_pk, c_key, c_value) values (1000, 'Unload cond.', 'Put to freezer zone');
insert into WMS_REC_ORDER_POSITION_DETAIL (c_order_pos_pk, c_key, c_value) values (1000, 'Unload', 'Unload carefully');
insert into WMS_REC_ORDER_POSITION_DETAIL (c_order_pos_pk, c_key, c_value) values (1000, 'Unload cond.', 'Put to freezer zone');
insert into WMS_REC_ORDER_POSITION_DETAIL (c_order_pos_pk, c_key, c_value) values (1000, 'Supplier', 'UNC Texas - Dallas');

-- TransportUnits
insert into WMS_REC_TRANSPORT_UNIT (c_pk, c_pid, c_ol, c_created, c_actual_location, c_barcode, c_foreign_pid) values (1000, '1000', 0, now(), 'WE01', '00000000000000004712', '2');
Expand Down

0 comments on commit e9cd234

Please sign in to comment.