Search in sources :

Example 1 with FileStructure

use of org.sonar.scanner.protocol.output.FileStructure in project sonarqube by SonarSource.

the class ReportIteratorTest method setUp.

@Before
public void setUp() throws Exception {
    File dir = temp.newFolder();
    ScannerReportWriter writer = new ScannerReportWriter(dir);
    writer.writeComponentCoverage(1, newArrayList(ScannerReport.LineCoverage.newBuilder().setLine(1).build()));
    file = new FileStructure(dir).fileFor(FileStructure.Domain.COVERAGES, 1);
}
Also used : FileStructure(org.sonar.scanner.protocol.output.FileStructure) ScannerReportWriter(org.sonar.scanner.protocol.output.ScannerReportWriter) File(java.io.File) Before(org.junit.Before)

Example 2 with FileStructure

use of org.sonar.scanner.protocol.output.FileStructure in project sonarqube by SonarSource.

the class ReportIteratorTest method setUp.

@Before
public void setUp() throws Exception {
    File dir = temp.newFolder();
    ScannerReportWriter writer = new ScannerReportWriter(dir);
    writer.writeComponentCoverage(1, newArrayList(ScannerReport.LineCoverage.newBuilder().setLine(1).build()));
    file = new FileStructure(dir).fileFor(FileStructure.Domain.COVERAGES, 1);
}
Also used : FileStructure(org.sonar.scanner.protocol.output.FileStructure) ScannerReportWriter(org.sonar.scanner.protocol.output.ScannerReportWriter) File(java.io.File) Before(org.junit.Before)

Aggregations

File (java.io.File)2 Before (org.junit.Before)2 FileStructure (org.sonar.scanner.protocol.output.FileStructure)2 ScannerReportWriter (org.sonar.scanner.protocol.output.ScannerReportWriter)2