use of org.sonarsource.sonarlint.core.container.connected.update.SettingsDownloader in project sonarlint-core by SonarSource.
the class ModuleStorageUpdateCheckerTest method prepare.
@Before
public void prepare() {
storageReader = mock(StorageReader.class);
moduleConfigurationDownloader = mock(ModuleConfigurationDownloader.class);
when(storageReader.readModuleConfig(MODULE_KEY)).thenReturn(ModuleConfiguration.newBuilder().build());
when(storageReader.readServerInfos()).thenReturn(ServerInfos.newBuilder().setVersion(SERVER_VERSION).build());
when(moduleConfigurationDownloader.fetchModuleConfiguration(eq(SERVER_VERSION), eq(MODULE_KEY), any(GlobalProperties.class), any(ProgressWrapper.class))).thenReturn(ModuleConfiguration.newBuilder().build());
SettingsDownloader settingsDownloader = mock(SettingsDownloader.class);
when(settingsDownloader.fetchGlobalSettings(SERVER_VERSION)).thenReturn(GlobalProperties.newBuilder().build());
checker = new ModuleStorageUpdateChecker(storageReader, moduleConfigurationDownloader, settingsDownloader);
}
Aggregations