@Test public void shouldGetTheSettings() { Settings settings = new Settings(); given(settingsRepository.get()).willReturn(settings); Settings s = settingsDAO.get(); assertThat(s, is(equalTo(settings))); }
public Settings get() { return settingsRepository.get(); }
SettingsDAO { public Settings get() { return settingsRepository.get(); } }
SettingsDAO { public Settings get() { return settingsRepository.get(); } @Autowired  SettingsDAO(SettingsRepository settingsRepository); }
SettingsDAO { public Settings get() { return settingsRepository.get(); } @Autowired  SettingsDAO(SettingsRepository settingsRepository); void create(Settings settings); Settings get(); void update(Settings settings); void removeDriver(String driver); void uploadDriver(MultipartFile file, String driver); void updateDriver(InputStream is, String filename, String driver); void updateDriverSystemProperties(DriverSettings driverSettings); }
SettingsDAO { public Settings get() { return settingsRepository.get(); } @Autowired  SettingsDAO(SettingsRepository settingsRepository); void create(Settings settings); Settings get(); void update(Settings settings); void removeDriver(String driver); void uploadDriver(MultipartFile file, String driver); void updateDriver(InputStream is, String filename, String driver); void updateDriverSystemProperties(DriverSettings driverSettings);  }