@Test public void shouldGetOrderFileColumns() { OrderFileColumn orderFileColumn = new OrderFileColumn(); orderFileColumn.setDataFieldLabel("facility.code"); orderFileColumn.setColumnLabel("Facility code"); orderFileColumn.setPosition(1); orderFileColumn.setIncludeInOrderFile(false); List<OrderFileColumn> orderFileColumns = asList(orderFileColumn); when(orderMapper.getOrderFileColumns()).thenReturn(orderFileColumns); assertThat(orderRepository.getOrderFileTemplate(), is(orderFileColumns)); verify(orderMapper).getOrderFileColumns(); }
public List<OrderFileColumn> getOrderFileTemplate() { return orderMapper.getOrderFileColumns(); }
OrderRepository { public List<OrderFileColumn> getOrderFileTemplate() { return orderMapper.getOrderFileColumns(); } }
OrderRepository { public List<OrderFileColumn> getOrderFileTemplate() { return orderMapper.getOrderFileColumns(); }  }
OrderRepository { public List<OrderFileColumn> getOrderFileTemplate() { return orderMapper.getOrderFileColumns(); }  void save(Order order); List<Order> getOrdersForPage(int page, int pageSize, Long userId, String rightName); List<Order> getOrdersForPage(int page, int pageSize, Long userId, String right, Long supplyDepot, Long program, Long period); Order getById(Long id); void updateStatusAndShipmentIdForOrder(String orderNumber, OrderStatus status, Long shipmentId); List<OrderFileColumn> getOrderFileTemplate(); void saveOrderFileColumns(List<OrderFileColumn> orderFileColumns, Long userId); void updateOrderStatus(Order order); OrderStatus getStatus(String orderNumber); Integer getNumberOfPages(int pageSize); Integer getNumberOfPages(int pageSize, Long supplyDepot, Long program, Long period); List<Order> searchByWarehousesAndStatuses(List<Long> facilityIds, List<OrderStatus> orderStatuses, Long programId, Long facilityId); Order getByOrderNumber(String orderNumber); }
OrderRepository { public List<OrderFileColumn> getOrderFileTemplate() { return orderMapper.getOrderFileColumns(); }  void save(Order order); List<Order> getOrdersForPage(int page, int pageSize, Long userId, String rightName); List<Order> getOrdersForPage(int page, int pageSize, Long userId, String right, Long supplyDepot, Long program, Long period); Order getById(Long id); void updateStatusAndShipmentIdForOrder(String orderNumber, OrderStatus status, Long shipmentId); List<OrderFileColumn> getOrderFileTemplate(); void saveOrderFileColumns(List<OrderFileColumn> orderFileColumns, Long userId); void updateOrderStatus(Order order); OrderStatus getStatus(String orderNumber); Integer getNumberOfPages(int pageSize); Integer getNumberOfPages(int pageSize, Long supplyDepot, Long program, Long period); List<Order> searchByWarehousesAndStatuses(List<Long> facilityIds, List<OrderStatus> orderStatuses, Long programId, Long facilityId); Order getByOrderNumber(String orderNumber);  }