use of org.eevolution.model.I_PP_Order in project metasfresh-webui-api by metasfresh.
the class PPOrderLineRowTest method canBuildForPPOrder.
@Test
public void canBuildForPPOrder() {
final I_PP_Order ppOrder = newInstance(I_PP_Order.class);
save(ppOrder);
final PPOrderLineRow result = PPOrderLineRow.builderForPPOrder().attributesProvider(viewRowAttributesProvider).includedRows(ImmutableList.of()).packingInfoOrNull("packingInfo").ppOrder(ppOrder).processed(true).build();
assertThat(result.getPackingInfo()).isEqualTo("packingInfo");
assertThat(result.isTopLevelHU()).isFalse();
assertThat(result.isHUStatusActive()).isFalse();
}
use of org.eevolution.model.I_PP_Order in project metasfresh-webui-api by metasfresh.
the class PPOrderLineRowTest method canBuildForPPOrderBomLine.
@Test
public void canBuildForPPOrderBomLine() {
final I_PP_Order ppOrder = newInstance(I_PP_Order.class);
save(ppOrder);
final I_PP_Order_BOMLine ppOrderBomLine = newInstance(I_PP_Order_BOMLine.class);
ppOrderBomLine.setPP_Order(ppOrder);
save(ppOrderBomLine);
final PPOrderLineRow result = PPOrderLineRow.builderForPPOrderBomLine().attributesProvider(viewRowAttributesProvider).includedRows(ImmutableList.of()).packingInfoOrNull(null).ppOrderBomLine(ppOrderBomLine).qtyPlan(BigDecimal.TEN).type(PPOrderLineType.BOMLine_Component).processed(true).build();
assertThat(result.getPackingInfo()).isNull();
assertThat(result.getType()).isEqualTo(PPOrderLineType.BOMLine_Component);
assertThat(result.isTopLevelHU()).isFalse();
assertThat(result.isHUStatusActive()).isFalse();
}
Aggregations