public class JavaTest extends RunnerTestCase {
@Rule
public TemporaryFolder temp = new TemporaryFolder();
@Test
public void scan_java_sources() {
<BUG>orchestrator.getServer().restoreProfile(ResourceLocation.create("/sonar-way-profile.xml"));
SonarRunner build = newRunner(new File("projects/java-sample"))</BUG>
.setProperty("sonar.verbose", "true")
<BUG>.addArguments("-e", "-X")

.setProfile("sonar-way");</BUG>
build.setProperty("sonar.host.url", orchestrator.getServer().getUrl() + "/");

public class JavaTest extends RunnerTestCase {
@Rule
public TemporaryFolder temp = new TemporaryFolder();
@Test
public void scan_java_sources() {
orchestrator.getServer().restoreProfile(ResourceLocation.create("/sonar-way-profile.xml"));
orchestrator.getServer().provisionProject("java:sample", "Java Sample, with comma");
orchestrator.getServer().associateProjectToQualityProfile("java:sample", "java", "sonar-way");
SonarRunner build = newRunner(new File("projects/java-sample"))
.setProperty("sonar.verbose", "true")
.addArguments("-e", "-X");
build.setProperty("sonar.host.url", orchestrator.getServer().getUrl() + "/");
