use of org.sonar.api.batch.bootstrap.ProjectDefinition in project sonarqube by SonarSource.
the class ProjectReactorBuilderTest method shouldAcceptNoProjectName.
@Test
public void shouldAcceptNoProjectName() {
ProjectDefinition rootProject = loadProjectDefinition("simple-project-with-missing-project-name");
assertThat(rootProject.getOriginalName()).isNull();
assertThat(rootProject.getName()).isEqualTo("com.foo.project");
}
use of org.sonar.api.batch.bootstrap.ProjectDefinition in project sonarqube by SonarSource.
the class ProjectReactorValidatorTest method createProjectReactor.
private ProjectReactor createProjectReactor(String projectKey, String branch) {
ProjectDefinition def = ProjectDefinition.create().setProperty(CoreProperties.PROJECT_KEY_PROPERTY, projectKey).setProperty(CoreProperties.PROJECT_BRANCH_PROPERTY, branch);
ProjectReactor reactor = new ProjectReactor(def);
settings.setProperty(CoreProperties.PROJECT_BRANCH_PROPERTY, branch);
return reactor;
}
Aggregations