@SuppressWarnings("unchecked") @Test(expected = Exception.class) public void test_throwException_Update_Gapcode() throws Exception { final GapcodeRequest gapcodeRequest = Mockito .mock(GapcodeRequest.class); when(gapcodeRepository.update(gapcodeRequest)).thenThrow( Exception.class); assertTrue(gapcodeRequest.equals(gapcodeService.update(gapcodeRequest))); }
public GapcodeRequest update(final GapcodeRequest gapcodeRequest) { return gapcodeRepository.update(gapcodeRequest); }
GapcodeService { public GapcodeRequest update(final GapcodeRequest gapcodeRequest) { return gapcodeRepository.update(gapcodeRequest); } }
GapcodeService { public GapcodeRequest update(final GapcodeRequest gapcodeRequest) { return gapcodeRepository.update(gapcodeRequest); }  }
GapcodeService { public GapcodeRequest update(final GapcodeRequest gapcodeRequest) { return gapcodeRepository.update(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 update(final GapcodeRequest gapcodeRequest) { return gapcodeRepository.update(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();  }