use of org.sonar.api.config.MapSettings in project sonarqube by SonarSource.
the class FileCacheProviderTest method keep_singleton_instance.
@Test
public void keep_singleton_instance() {
FileCacheProvider provider = new FileCacheProvider();
Settings settings = new MapSettings();
FileCache cache1 = provider.provide(settings);
FileCache cache2 = provider.provide(settings);
assertThat(cache1).isSameAs(cache2);
}
use of org.sonar.api.config.MapSettings in project sonarqube by SonarSource.
the class FileCacheProviderTest method provide.
@Test
public void provide() {
FileCacheProvider provider = new FileCacheProvider();
FileCache cache = provider.provide(new MapSettings());
assertThat(cache).isNotNull();
assertThat(cache.getDir()).isNotNull().exists();
}
use of org.sonar.api.config.MapSettings in project sonarqube by SonarSource.
the class IssueInclusionPatternInitializerTest method init.
@Before
public void init() {
settings = new MapSettings(new PropertyDefinitions(IssueExclusionProperties.all()));
patternsInitializer = new IssueInclusionPatternInitializer(settings);
}
use of org.sonar.api.config.MapSettings in project sonarqube by SonarSource.
the class DefaultPostJobContextTest method prepare.
@Before
public void prepare() {
issueCache = mock(IssueCache.class);
componentStore = new InputComponentStore(new PathResolver());
settings = new MapSettings();
analysisMode = mock(AnalysisMode.class);
context = new DefaultPostJobContext(settings, issueCache, componentStore, analysisMode);
}
use of org.sonar.api.config.MapSettings in project sonarqube by SonarSource.
the class PostJobOptimizerTest method prepare.
@Before
public void prepare() {
settings = new MapSettings();
optimizer = new PostJobOptimizer(settings);
}
Aggregations