@Test public void test_Should_Get_PipeSizes() throws Exception { final PipeSizeGetRequest pipeSizeGetRequest = new PipeSizeGetRequest(); final PipeSize pipeSize = new PipeSize(); pipeSize.setCode("10"); pipeSize.setActive(true); final List<PipeSize> pipeSizes = new ArrayList<>(); List<PipeSize> pipeSizesResult = new ArrayList<>(); pipeSizes.add(pipeSize); when(pipeSizeRepository.findForCriteria(pipeSizeGetRequest)).thenReturn(pipeSizes); pipeSizesResult = pipeSizeService.getPipeSizes(pipeSizeGetRequest); assertTrue(null != pipeSizesResult); }
public List<PipeSize> getPipeSizes(final PipeSizeGetRequest pipeSizeGetRequest) { return pipeSizeRepository.findForCriteria(pipeSizeGetRequest); }
PipeSizeService { public List<PipeSize> getPipeSizes(final PipeSizeGetRequest pipeSizeGetRequest) { return pipeSizeRepository.findForCriteria(pipeSizeGetRequest); } }
PipeSizeService { public List<PipeSize> getPipeSizes(final PipeSizeGetRequest pipeSizeGetRequest) { return pipeSizeRepository.findForCriteria(pipeSizeGetRequest); }  }
PipeSizeService { public List<PipeSize> getPipeSizes(final PipeSizeGetRequest pipeSizeGetRequest) { return pipeSizeRepository.findForCriteria(pipeSizeGetRequest); }  PipeSizeRequest create(final PipeSizeRequest pipeSizeRequest); PipeSizeRequest update(final PipeSizeRequest pipeSizeRequest); List<PipeSize> pushCreateToQueue(final String topic, final String key, final PipeSizeRequest pipeSizeRequest); List<PipeSize> pushUpdateToQueue(final String topic, final String key, final PipeSizeRequest pipeSizeRequest); boolean getPipeSizeInmmAndCode(final String code, final Double sizeInMilimeter, final String tenantId); List<PipeSize> getPipeSizes(final PipeSizeGetRequest pipeSizeGetRequest); }
PipeSizeService { public List<PipeSize> getPipeSizes(final PipeSizeGetRequest pipeSizeGetRequest) { return pipeSizeRepository.findForCriteria(pipeSizeGetRequest); }  PipeSizeRequest create(final PipeSizeRequest pipeSizeRequest); PipeSizeRequest update(final PipeSizeRequest pipeSizeRequest); List<PipeSize> pushCreateToQueue(final String topic, final String key, final PipeSizeRequest pipeSizeRequest); List<PipeSize> pushUpdateToQueue(final String topic, final String key, final PipeSizeRequest pipeSizeRequest); boolean getPipeSizeInmmAndCode(final String code, final Double sizeInMilimeter, final String tenantId); List<PipeSize> getPipeSizes(final PipeSizeGetRequest pipeSizeGetRequest);  }