@Test public void test_throwException_Create_Gapcode() { final List<Gapcode> gapcodeList = new ArrayList<>(); gapcodeList.add(getGapcode()); final GapcodeRequest gapcodeRequest = new GapcodeRequest(); gapcodeRequest.setGapcode(gapcodeList); when(gapcodeRepository.create(any(GapcodeRequest.class))).thenReturn( gapcodeRequest); assertTrue(gapcodeRequest.equals(gapcodeService.create(gapcodeRequest))); }
public GapcodeRequest create(final GapcodeRequest gapcodeRequest) { return gapcodeRepository.create(gapcodeRequest); }
GapcodeService { public GapcodeRequest create(final GapcodeRequest gapcodeRequest) { return gapcodeRepository.create(gapcodeRequest); } }
GapcodeService { public GapcodeRequest create(final GapcodeRequest gapcodeRequest) { return gapcodeRepository.create(gapcodeRequest); }  }
GapcodeService { public GapcodeRequest create(final GapcodeRequest gapcodeRequest) { return gapcodeRepository.create(gapcodeRequest); }  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 GapcodeRequest create(final GapcodeRequest gapcodeRequest) { return gapcodeRepository.create(gapcodeRequest); }  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();  }