File tree Expand file tree Collapse file tree
its/plugin/tests/src/test/java/com/sonar/it/java/suite Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020import com .sonar .orchestrator .build .MavenBuild ;
2121import com .sonar .orchestrator .build .SonarScanner ;
2222import com .sonar .orchestrator .junit4 .OrchestratorRule ;
23+ import com .sonar .orchestrator .locator .Locators ;
2324import com .sonar .orchestrator .locator .MavenLocation ;
2425import java .io .File ;
2526import java .nio .file .Path ;
@@ -67,7 +68,7 @@ public void copyGuavaJar() {
6768 File subFolder = new File (tmp .getRoot (), "subFolder" );
6869 // Use a folder with comma to test proper property parsing
6970 File subSubFolder = new File (subFolder , "sub,SubFolder" );
70- ORCHESTRATOR .getConfiguration (). locators ( ).copyToDirectory (guava , subSubFolder );
71+ new Locators ( ORCHESTRATOR .getConfiguration ()).copyToDirectory (guava , subSubFolder );
7172
7273 aarPath = new File (new File (TestUtils .projectDir ("using-aar-dep" ), "lib" ), "cache-1.3.0.aar" ).getAbsolutePath ();
7374 guavaJarPathEscaped = "\" " + new File (subSubFolder .getAbsolutePath (), guava .getFilename ()).getAbsolutePath () + "\" " ;
Original file line number Diff line number Diff line change 2020import com .sonar .orchestrator .build .MavenBuild ;
2121import com .sonar .orchestrator .build .SonarScanner ;
2222import com .sonar .orchestrator .junit4 .OrchestratorRule ;
23+ import com .sonar .orchestrator .locator .Locators ;
2324import com .sonar .orchestrator .locator .MavenLocation ;
2425import java .io .File ;
2526import java .util .List ;
@@ -154,7 +155,7 @@ public void support_change_of_extension_property() {
154155 @ Test
155156 public void should_execute_rule_on_test () {
156157 MavenLocation junit411 = MavenLocation .of ("junit" , "junit" , "4.11" );
157- orchestrator .getConfiguration (). locators ( ).copyToDirectory (junit411 , tmp .getRoot ());
158+ new Locators ( orchestrator .getConfiguration ()).copyToDirectory (junit411 , tmp .getRoot ());
158159 MavenBuild build = TestUtils .createMavenBuild ()
159160 .setPom (TestUtils .projectPom ("java-inner-classes" ))
160161 .setProperty ("sonar.java.test.binaries" , "target/test-classes" )
Original file line number Diff line number Diff line change 9797 <sonarlint .plugin.api.version>10.13.0.79996</sonarlint .plugin.api.version>
9898 <sonar .sca.exclusions>its/**,java-checks-test-sources/**</sonar .sca.exclusions>
9999 <analyzer .commons.version>2.18.0.3393</analyzer .commons.version>
100- <orchestrator .version>5.6.2.2625 </orchestrator .version>
100+ <orchestrator .version>6.1.0.3962 </orchestrator .version>
101101 <sslr .version>1.24.0.633</sslr .version>
102102 <argLine >-Xmx512m</argLine >
103103 <gitRepositoryName >sonar-java</gitRepositoryName >
You can’t perform that action at this time.
0 commit comments