@Test public void shouldSetValue() throws Exception { ConfigurationSetting setting = new ConfigurationSetting(); setting.setKey("COUNTRY"); repository.setValue(setting); verify(mapper).updateValue(setting); }
public void setValue(ConfigurationSetting config) { mapper.updateValue(config); }
ConfigurationSettingRepository { public void setValue(ConfigurationSetting config) { mapper.updateValue(config); } }
ConfigurationSettingRepository { public void setValue(ConfigurationSetting config) { mapper.updateValue(config); } @Autowired  ConfigurationSettingRepository(ConfigurationSettingMapper configurationSettingMapper); }
ConfigurationSettingRepository { public void setValue(ConfigurationSetting config) { mapper.updateValue(config); } @Autowired  ConfigurationSettingRepository(ConfigurationSettingMapper configurationSettingMapper); ConfigurationSetting getByKey(String key); List<ConfigurationSetting> getAll(); void setValue(ConfigurationSetting config); List<ConfigurationSetting> getSearchResults(String s); }
ConfigurationSettingRepository { public void setValue(ConfigurationSetting config) { mapper.updateValue(config); } @Autowired  ConfigurationSettingRepository(ConfigurationSettingMapper configurationSettingMapper); ConfigurationSetting getByKey(String key); List<ConfigurationSetting> getAll(); void setValue(ConfigurationSetting config); List<ConfigurationSetting> getSearchResults(String s);  }