@Test public void shouldAddOrderQuantityAdjustmentFactor()throws Exception{ OrderQuantityAdjustmentFactor adjustmentFactor = new OrderQuantityAdjustmentFactor(); adjustmentFactor.setName("Test Adjustment inserted"); adjustmentFactor.setDisplayOrder(2); adjustmentFactor.setDescription("Test Adjustment inserted Description"); adjustmentFactor.setCreatedDate(new Date()); factorService.addOrderQuantityAdjustmentFactor(adjustmentFactor); verify(factorRepository).addOrderQuantityAdjustmentFactor(adjustmentFactor); }
public void addOrderQuantityAdjustmentFactor(OrderQuantityAdjustmentFactor orderQuantityAdjustmentFactor) { this.quantityAdjustmentFactorRepository.addOrderQuantityAdjustmentFactor(orderQuantityAdjustmentFactor); }
OrderQuantityAdjustmentFactorService { public void addOrderQuantityAdjustmentFactor(OrderQuantityAdjustmentFactor orderQuantityAdjustmentFactor) { this.quantityAdjustmentFactorRepository.addOrderQuantityAdjustmentFactor(orderQuantityAdjustmentFactor); } }
OrderQuantityAdjustmentFactorService { public void addOrderQuantityAdjustmentFactor(OrderQuantityAdjustmentFactor orderQuantityAdjustmentFactor) { this.quantityAdjustmentFactorRepository.addOrderQuantityAdjustmentFactor(orderQuantityAdjustmentFactor); }  }
OrderQuantityAdjustmentFactorService { public void addOrderQuantityAdjustmentFactor(OrderQuantityAdjustmentFactor orderQuantityAdjustmentFactor) { this.quantityAdjustmentFactorRepository.addOrderQuantityAdjustmentFactor(orderQuantityAdjustmentFactor); }  void addOrderQuantityAdjustmentFactor(OrderQuantityAdjustmentFactor orderQuantityAdjustmentFactor); void updateOrderQuantityAdjustmentFactor(OrderQuantityAdjustmentFactor orderQuantityAdjustmentFactor); void deleteOrderQuantityAdjustmentFactor(OrderQuantityAdjustmentFactor orderQuantityAdjustmentFactor); List<OrderQuantityAdjustmentFactor> loadOrderQuantityAdjustmentFactor(); OrderQuantityAdjustmentFactor loadOrderQuantityAdjustmentFactorDetail(long id); List<OrderQuantityAdjustmentFactor> searchAdjustmentFactor(String param); }
OrderQuantityAdjustmentFactorService { public void addOrderQuantityAdjustmentFactor(OrderQuantityAdjustmentFactor orderQuantityAdjustmentFactor) { this.quantityAdjustmentFactorRepository.addOrderQuantityAdjustmentFactor(orderQuantityAdjustmentFactor); }  void addOrderQuantityAdjustmentFactor(OrderQuantityAdjustmentFactor orderQuantityAdjustmentFactor); void updateOrderQuantityAdjustmentFactor(OrderQuantityAdjustmentFactor orderQuantityAdjustmentFactor); void deleteOrderQuantityAdjustmentFactor(OrderQuantityAdjustmentFactor orderQuantityAdjustmentFactor); List<OrderQuantityAdjustmentFactor> loadOrderQuantityAdjustmentFactor(); OrderQuantityAdjustmentFactor loadOrderQuantityAdjustmentFactorDetail(long id); List<OrderQuantityAdjustmentFactor> searchAdjustmentFactor(String param);  }