@Test public void shouldSetStockMovementItemAndUpdateMovementQuantity() throws ParseException { StockMovementItem stockMovementItem= new StockMovementItemBuilder().build(); lotMovementItem.setMovementQuantity(10L); stockMovementItem.setMovementType(MovementReasonManager.MovementType.ISSUE); lotMovementItem.setStockMovementItemAndUpdateMovementQuantity(stockMovementItem); assertThat(lotMovementItem.getMovementQuantity(), is(-10L)); lotMovementItem.setMovementQuantity(20L); stockMovementItem.setMovementType(MovementReasonManager.MovementType.POSITIVE_ADJUST); lotMovementItem.setStockMovementItemAndUpdateMovementQuantity(stockMovementItem); assertThat(lotMovementItem.getMovementQuantity(), is(20L)); }
public void setStockMovementItemAndUpdateMovementQuantity(StockMovementItem stockMovementItem) { this.stockMovementItem = stockMovementItem; updateMovementQuantity(); }
LotMovementItem extends BaseModel { public void setStockMovementItemAndUpdateMovementQuantity(StockMovementItem stockMovementItem) { this.stockMovementItem = stockMovementItem; updateMovementQuantity(); } }
LotMovementItem extends BaseModel { public void setStockMovementItemAndUpdateMovementQuantity(StockMovementItem stockMovementItem) { this.stockMovementItem = stockMovementItem; updateMovementQuantity(); }  }
LotMovementItem extends BaseModel { public void setStockMovementItemAndUpdateMovementQuantity(StockMovementItem stockMovementItem) { this.stockMovementItem = stockMovementItem; updateMovementQuantity(); }  void setStockMovementItemAndUpdateMovementQuantity(StockMovementItem stockMovementItem); void updateMovementQuantity(); }
LotMovementItem extends BaseModel { public void setStockMovementItemAndUpdateMovementQuantity(StockMovementItem stockMovementItem) { this.stockMovementItem = stockMovementItem; updateMovementQuantity(); }  void setStockMovementItemAndUpdateMovementQuantity(StockMovementItem stockMovementItem); void updateMovementQuantity();  }