Search in sources :

Example 1 with IssueCache

use of org.sonar.scanner.issue.IssueCache in project sonarqube by SonarSource.

the class ConsoleReportTest method prepare.

@Before
public void prepare() {
    settings = new MapSettings();
    issueCache = mock(IssueCache.class);
    inputPathCache = mock(InputComponentStore.class);
    report = new ConsoleReport(settings, issueCache, inputPathCache);
}
Also used : MapSettings(org.sonar.api.config.MapSettings) InputComponentStore(org.sonar.scanner.scan.filesystem.InputComponentStore) IssueCache(org.sonar.scanner.issue.IssueCache) Before(org.junit.Before)

Example 2 with IssueCache

use of org.sonar.scanner.issue.IssueCache 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);
}
Also used : MapSettings(org.sonar.api.config.MapSettings) InputComponentStore(org.sonar.scanner.scan.filesystem.InputComponentStore) PathResolver(org.sonar.api.scan.filesystem.PathResolver) AnalysisMode(org.sonar.api.batch.AnalysisMode) IssueCache(org.sonar.scanner.issue.IssueCache) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)2 MapSettings (org.sonar.api.config.MapSettings)2 IssueCache (org.sonar.scanner.issue.IssueCache)2 InputComponentStore (org.sonar.scanner.scan.filesystem.InputComponentStore)2 AnalysisMode (org.sonar.api.batch.AnalysisMode)1 PathResolver (org.sonar.api.scan.filesystem.PathResolver)1