@Test public void test_Search_For_Gapcode_Null() { final List<Gapcode> gapcodeList = new ArrayList<>(); final Gapcode gapcode = Mockito.mock(Gapcode.class); gapcodeList.add(gapcode); when(gapcodeRepository.findForCriteria(any(GapcodeGetRequest.class))) .thenReturn(null); assertNull(gapcodeService.getGapcodes(any(GapcodeGetRequest.class))); }
public List<Gapcode> getGapcodes(final GapcodeGetRequest gapcodeGetRequest) { return gapcodeRepository.findForCriteria(gapcodeGetRequest); }
GapcodeService { public List<Gapcode> getGapcodes(final GapcodeGetRequest gapcodeGetRequest) { return gapcodeRepository.findForCriteria(gapcodeGetRequest); } }
GapcodeService { public List<Gapcode> getGapcodes(final GapcodeGetRequest gapcodeGetRequest) { return gapcodeRepository.findForCriteria(gapcodeGetRequest); }  }
GapcodeService { public List<Gapcode> getGapcodes(final GapcodeGetRequest gapcodeGetRequest) { return gapcodeRepository.findForCriteria(gapcodeGetRequest); }  List<Gapcode> pushCreateToQueue(final String topic, final String key,
            final GapcodeRequest gapcodeRequest); GapcodeRequest create(final GapcodeRequest gapcodeRequest); List<Gapcode> pushUpdateToQueue(final String topic, final String key,
            final GapcodeRequest gapcodeRequest); GapcodeRequest update(final GapcodeRequest gapcodeRequest); List<Gapcode> getGapcodes(final GapcodeGetRequest gapcodeGetRequest); List<CommonDataModel> getFormulaQuery(); }
GapcodeService { public List<Gapcode> getGapcodes(final GapcodeGetRequest gapcodeGetRequest) { return gapcodeRepository.findForCriteria(gapcodeGetRequest); }  List<Gapcode> pushCreateToQueue(final String topic, final String key,
            final GapcodeRequest gapcodeRequest); GapcodeRequest create(final GapcodeRequest gapcodeRequest); List<Gapcode> pushUpdateToQueue(final String topic, final String key,
            final GapcodeRequest gapcodeRequest); GapcodeRequest update(final GapcodeRequest gapcodeRequest); List<Gapcode> getGapcodes(final GapcodeGetRequest gapcodeGetRequest); List<CommonDataModel> getFormulaQuery();  }