Search in sources :

Example 6 with InputComponentStore

use of org.sonar.scanner.scan.filesystem.InputComponentStore 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)

Example 7 with InputComponentStore

use of org.sonar.scanner.scan.filesystem.InputComponentStore in project sonarqube by SonarSource.

the class ModuleIndexerTest method setUp.

@Before
public void setUp() {
    reactor = mock(ImmutableProjectReactor.class);
    componentStore = new InputComponentStore(new PathResolver());
    tree = new DefaultComponentTree();
    moduleHierarchy = new DefaultInputModuleHierarchy();
    indexer = new ModuleIndexer(reactor, tree, componentStore, new BatchIdGenerator(), moduleHierarchy);
}
Also used : InputComponentStore(org.sonar.scanner.scan.filesystem.InputComponentStore) BatchIdGenerator(org.sonar.scanner.scan.filesystem.BatchIdGenerator) PathResolver(org.sonar.api.scan.filesystem.PathResolver) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)7 PathResolver (org.sonar.api.scan.filesystem.PathResolver)7 InputComponentStore (org.sonar.scanner.scan.filesystem.InputComponentStore)7 TestInputFileBuilder (org.sonar.api.batch.fs.internal.TestInputFileBuilder)4 File (java.io.File)3 DefaultInputFile (org.sonar.api.batch.fs.internal.DefaultInputFile)3 ScannerReportWriter (org.sonar.scanner.protocol.output.ScannerReportWriter)3 Matchers.anyString (org.mockito.Matchers.anyString)2 InputFile (org.sonar.api.batch.fs.InputFile)2 MapSettings (org.sonar.api.config.MapSettings)2 MeasureCache (org.sonar.scanner.scan.measure.MeasureCache)2 AnalysisMode (org.sonar.api.batch.AnalysisMode)1 DefaultFileSystem (org.sonar.api.batch.fs.internal.DefaultFileSystem)1 DefaultInputDir (org.sonar.api.batch.fs.internal.DefaultInputDir)1 DefaultInputModule (org.sonar.api.batch.fs.internal.DefaultInputModule)1 InputModuleHierarchy (org.sonar.api.batch.fs.internal.InputModuleHierarchy)1 RulesBuilder (org.sonar.api.batch.rule.internal.RulesBuilder)1 SonarCpdBlockIndex (org.sonar.scanner.cpd.index.SonarCpdBlockIndex)1 IssueCache (org.sonar.scanner.issue.IssueCache)1 ScannerReportReader (org.sonar.scanner.protocol.output.ScannerReportReader)1