@Test public void shouldAddOrderQuantityAdjustmentType()throws Exception{ OrderQuantityAdjustmentType adjustmentType = new OrderQuantityAdjustmentType(); adjustmentType.setName("Test Adjustment inserted"); adjustmentType.setDisplayOrder(2); adjustmentType.setDescription("Test Adjustment inserted Description"); adjustmentType.setCreatedDate(new Date()); adjustmentTypeRepository.addOrderQuantityAdjustmentType(adjustmentType); verify(adjustmentTypeMapper).insert(adjustmentType); }
public void addOrderQuantityAdjustmentType(OrderQuantityAdjustmentType quantityAdjustmentType) { this.quantityAdjustmentTypeMapper.insert(quantityAdjustmentType); }
OrderQuantityAdjustmentTypeRepository { public void addOrderQuantityAdjustmentType(OrderQuantityAdjustmentType quantityAdjustmentType) { this.quantityAdjustmentTypeMapper.insert(quantityAdjustmentType); } }
OrderQuantityAdjustmentTypeRepository { public void addOrderQuantityAdjustmentType(OrderQuantityAdjustmentType quantityAdjustmentType) { this.quantityAdjustmentTypeMapper.insert(quantityAdjustmentType); }  }
OrderQuantityAdjustmentTypeRepository { public void addOrderQuantityAdjustmentType(OrderQuantityAdjustmentType quantityAdjustmentType) { this.quantityAdjustmentTypeMapper.insert(quantityAdjustmentType); }  void addOrderQuantityAdjustmentType(OrderQuantityAdjustmentType quantityAdjustmentType); void updateOrderQuantityAdjustmentType(OrderQuantityAdjustmentType quantityAdjustmentType); void deleteOrderQuantityAdjustmentType(OrderQuantityAdjustmentType quantityAdjustmentType); List<OrderQuantityAdjustmentType> loadOrderQuantityAdjustmentTypeList(); OrderQuantityAdjustmentType loadOrderQuantityAdjustmentType(Long id); List<OrderQuantityAdjustmentType> searchForQuantityAdjustmentType(String param); }
OrderQuantityAdjustmentTypeRepository { public void addOrderQuantityAdjustmentType(OrderQuantityAdjustmentType quantityAdjustmentType) { this.quantityAdjustmentTypeMapper.insert(quantityAdjustmentType); }  void addOrderQuantityAdjustmentType(OrderQuantityAdjustmentType quantityAdjustmentType); void updateOrderQuantityAdjustmentType(OrderQuantityAdjustmentType quantityAdjustmentType); void deleteOrderQuantityAdjustmentType(OrderQuantityAdjustmentType quantityAdjustmentType); List<OrderQuantityAdjustmentType> loadOrderQuantityAdjustmentTypeList(); OrderQuantityAdjustmentType loadOrderQuantityAdjustmentType(Long id); List<OrderQuantityAdjustmentType> searchForQuantityAdjustmentType(String param);  }