Search in sources :

Example 1 with BranchPersister

use of org.sonar.ce.task.projectanalysis.component.BranchPersister in project sonarqube by SonarSource.

the class ViewsPersistComponentsStepTest method setup.

@Before
public void setup() throws Exception {
    now = DATE_FORMAT.parse("2015-06-02");
    when(system2.now()).thenReturn(now.getTime());
    analysisMetadataHolder.setBranch(new DefaultBranchImpl());
    BranchPersister branchPersister = mock(BranchPersister.class);
    ProjectPersister projectPersister = mock(ProjectPersister.class);
    underTest = new PersistComponentsStep(dbClient, treeRootHolder, system2, disabledComponentsHolder, analysisMetadataHolder, branchPersister, projectPersister);
}
Also used : ProjectPersister(org.sonar.ce.task.projectanalysis.component.ProjectPersister) DefaultBranchImpl(org.sonar.ce.task.projectanalysis.component.DefaultBranchImpl) BranchPersister(org.sonar.ce.task.projectanalysis.component.BranchPersister) Before(org.junit.Before)

Example 2 with BranchPersister

use of org.sonar.ce.task.projectanalysis.component.BranchPersister in project sonarqube by SonarSource.

the class ReportPersistComponentsStepTest method setup.

@Before
public void setup() throws Exception {
    now = DATE_FORMAT.parse("2015-06-02");
    when(system2.now()).thenReturn(now.getTime());
    BranchPersister branchPersister = mock(BranchPersister.class);
    ProjectPersister projectPersister = mock(ProjectPersister.class);
    underTest = new PersistComponentsStep(dbClient, treeRootHolder, system2, disabledComponentsHolder, analysisMetadataHolder, branchPersister, projectPersister);
}
Also used : ProjectPersister(org.sonar.ce.task.projectanalysis.component.ProjectPersister) BranchPersister(org.sonar.ce.task.projectanalysis.component.BranchPersister) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)2 BranchPersister (org.sonar.ce.task.projectanalysis.component.BranchPersister)2 ProjectPersister (org.sonar.ce.task.projectanalysis.component.ProjectPersister)2 DefaultBranchImpl (org.sonar.ce.task.projectanalysis.component.DefaultBranchImpl)1