assertThat(project.getMeasureIntValue("files")).isEqualTo(1);
assertThat(project.getMeasureIntValue("ncloc")).isGreaterThan(1);
}
@Test
public void should_support_simple_project_keys() {
<BUG>orchestrator.getServer().restoreProfile(ResourceLocation.create("/sonar-way-profile.xml"));
SonarRunner build = newRunner(new File("projects/java-sample"))
.setProjectKey("SAMPLE")

.setProfile("sonar-way");</BUG>
orchestrator.executeBuild(build);

assertThat(project.getMeasureIntValue("files")).isEqualTo(1);
assertThat(project.getMeasureIntValue("ncloc")).isGreaterThan(1);
}
@Test
public void should_support_simple_project_keys() {
orchestrator.getServer().restoreProfile(ResourceLocation.create("/sonar-way-profile.xml"));
orchestrator.getServer().provisionProject("SAMPLE", "Java Sample, with comma");
orchestrator.getServer().associateProjectToQualityProfile("SAMPLE", "java", "sonar-way");
SonarRunner build = newRunner(new File("projects/java-sample"))
.setProjectKey("SAMPLE");
orchestrator.executeBuild(build);
