Search in sources :

Example 1 with IssueStorage

use of org.sonar.server.issue.IssueStorage in project sonarqube by SonarSource.

the class PersistIssuesStepTest method setup.

@Before
public void setup() throws Exception {
    protoIssueCache = new ProtoIssueCache(temp.newFile(), System2.INSTANCE);
    reportReader.setMetadata(ScannerReport.Metadata.getDefaultInstance());
    underTest = new PersistIssuesStep(dbClient, system2, conflictResolver, new RuleRepositoryImpl(adHocRuleCreator, dbClient), protoIssueCache, new IssueStorage(), UuidFactoryImpl.INSTANCE);
}
Also used : ProtoIssueCache(org.sonar.ce.task.projectanalysis.issue.ProtoIssueCache) RuleRepositoryImpl(org.sonar.ce.task.projectanalysis.issue.RuleRepositoryImpl) IssueStorage(org.sonar.server.issue.IssueStorage) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 ProtoIssueCache (org.sonar.ce.task.projectanalysis.issue.ProtoIssueCache)1 RuleRepositoryImpl (org.sonar.ce.task.projectanalysis.issue.RuleRepositoryImpl)1 IssueStorage (org.sonar.server.issue.IssueStorage)1