@Test public void shouldGetPODByOrderId() { Long orderId = 2l; OrderPOD expectedOrderPOD = new OrderPOD(); when(repository.getPODByOrderId(orderId)).thenReturn(expectedOrderPOD); OrderPOD savedOrderPOD = podService.getPODByOrderId(orderId); verify(repository).getPODByOrderId(orderId); assertThat(savedOrderPOD, is(expectedOrderPOD)); }
public OrderPOD getPODByOrderId(Long orderId) { return repository.getPODByOrderId(orderId); }
PODService { public OrderPOD getPODByOrderId(Long orderId) { return repository.getPODByOrderId(orderId); } }
PODService { public OrderPOD getPODByOrderId(Long orderId) { return repository.getPODByOrderId(orderId); }  }
PODService { public OrderPOD getPODByOrderId(Long orderId) { return repository.getPODByOrderId(orderId); }  @Transactional OrderPOD createPOD(OrderPOD orderPOD); void updateOrderStatus(OrderPOD orderPod); void checkPermissions(OrderPOD orderPod); OrderPOD getPODByOrderId(Long orderId); List<OrderPODLineItem> getNPreviousOrderPodLineItems(String productCode,
                                                              Rnr requisition,
                                                              Integer n,
                                                              Date startDate); void insertPOD(OrderPOD orderPod); OrderPOD getPodById(Long podId); @Transactional OrderPOD save(OrderPOD orderPOD); @Transactional OrderPOD submit(Long podId, Long userId); void insertPODLineItem(OrderPODLineItem orderPodLineItem); }
PODService { public OrderPOD getPODByOrderId(Long orderId) { return repository.getPODByOrderId(orderId); }  @Transactional OrderPOD createPOD(OrderPOD orderPOD); void updateOrderStatus(OrderPOD orderPod); void checkPermissions(OrderPOD orderPod); OrderPOD getPODByOrderId(Long orderId); List<OrderPODLineItem> getNPreviousOrderPodLineItems(String productCode,
                                                              Rnr requisition,
                                                              Integer n,
                                                              Date startDate); void insertPOD(OrderPOD orderPod); OrderPOD getPodById(Long podId); @Transactional OrderPOD save(OrderPOD orderPOD); @Transactional OrderPOD submit(Long podId, Long userId); void insertPODLineItem(OrderPODLineItem orderPodLineItem);  }