Search in sources :

Example 1 with SonarLintFileSystem

use of org.sonarsource.sonarlint.core.analysis.container.analysis.filesystem.SonarLintFileSystem in project sonarlint-core by SonarSource.

the class SensorOptimizerTests method prepare.

@BeforeEach
void prepare() throws Exception {
    fs = new SonarLintFileSystem(mock(AnalysisConfiguration.class), inputFileCache);
    settings = new MapSettings(Map.of());
    optimizer = new SensorOptimizer(fs, mock(ActiveRules.class), settings.asConfig());
}
Also used : MapSettings(org.sonarsource.sonarlint.core.analysis.sonarapi.MapSettings) SonarLintFileSystem(org.sonarsource.sonarlint.core.analysis.container.analysis.filesystem.SonarLintFileSystem) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 SonarLintFileSystem (org.sonarsource.sonarlint.core.analysis.container.analysis.filesystem.SonarLintFileSystem)1 MapSettings (org.sonarsource.sonarlint.core.analysis.sonarapi.MapSettings)1