@Test public void shouldGetPODByOrderId() { Long orderId = 1l; OrderPOD expectedOrderPOD = new OrderPOD(); when(mapper.getPODByOrderId(orderId)).thenReturn(expectedOrderPOD); OrderPOD orderPod = repository.getPODByOrderId(orderId); verify(mapper).getPODByOrderId(orderId); assertThat(orderPod, is(expectedOrderPOD)); }
public OrderPOD getPODByOrderId(Long orderId) { return mapper.getPODByOrderId(orderId); }
PODRepository { public OrderPOD getPODByOrderId(Long orderId) { return mapper.getPODByOrderId(orderId); } }
PODRepository { public OrderPOD getPODByOrderId(Long orderId) { return mapper.getPODByOrderId(orderId); }  }
PODRepository { public OrderPOD getPODByOrderId(Long orderId) { return mapper.getPODByOrderId(orderId); }  void insertPODLineItem(OrderPODLineItem orderPodLineItem); void insertPOD(OrderPOD orderPod); OrderPOD getPODByOrderId(Long orderId); List<OrderPODLineItem> getNPodLineItems(String productCode, Rnr requisition, Integer n, Date startDate); OrderPOD getPOD(Long podId); OrderPOD insert(OrderPOD orderPOD); OrderPOD update(OrderPOD orderPOD); }
PODRepository { public OrderPOD getPODByOrderId(Long orderId) { return mapper.getPODByOrderId(orderId); }  void insertPODLineItem(OrderPODLineItem orderPodLineItem); void insertPOD(OrderPOD orderPod); OrderPOD getPODByOrderId(Long orderId); List<OrderPODLineItem> getNPodLineItems(String productCode, Rnr requisition, Integer n, Date startDate); OrderPOD getPOD(Long podId); OrderPOD insert(OrderPOD orderPOD); OrderPOD update(OrderPOD orderPOD);  }