File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
plugin/src/test/java/org/sonarsource/slang
ruling/src/test/java/org/sonarsource/slang Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1616 */
1717package org .sonarsource .slang ;
1818
19+ import com .sonar .orchestrator .container .Edition ;
1920import com .sonar .orchestrator .junit4 .OrchestratorRule ;
2021import com .sonar .orchestrator .junit4 .OrchestratorRuleBuilder ;
2122import com .sonar .orchestrator .locator .Locators ;
@@ -67,6 +68,8 @@ public static void prepare() throws Exception {
6768 Tests .addLanguagePlugins (orchestratorBuilder );
6869 OrchestratorRule orchestrator = orchestratorBuilder
6970 .useDefaultAdminCredentialsForBuilds (true )
71+ .setEdition (Edition .ENTERPRISE_LW )
72+ .activateLicense ()
7073 .setSonarVersion (System .getProperty (Tests .SQ_VERSION_PROPERTY , Tests .DEFAULT_SQ_VERSION ))
7174 .build ();
7275
Original file line number Diff line number Diff line change 1616 */
1717package org .sonarsource .slang ;
1818
19+ import com .sonar .orchestrator .container .Edition ;
1920import com .sonar .orchestrator .junit4 .OrchestratorRule ;
2021import com .sonar .orchestrator .junit4 .OrchestratorRuleBuilder ;
2122import com .sonar .orchestrator .locator .FileLocation ;
@@ -53,6 +54,8 @@ public class Tests {
5354 addLanguagePlugins (orchestratorBuilder );
5455 ORCHESTRATOR = orchestratorBuilder
5556 .useDefaultAdminCredentialsForBuilds (true )
57+ .setEdition (Edition .ENTERPRISE_LW )
58+ .activateLicense ()
5659 .setSonarVersion (System .getProperty (SQ_VERSION_PROPERTY , DEFAULT_SQ_VERSION ))
5760 .restoreProfileAtStartup (FileLocation .of ("src/test/resources/nosonar-scala.xml" ))
5861 .restoreProfileAtStartup (FileLocation .of ("src/test/resources/norule.xml" ))
Original file line number Diff line number Diff line change 1717package org .sonarsource .slang ;
1818
1919import com .sonar .orchestrator .build .SonarScanner ;
20+ import com .sonar .orchestrator .container .Edition ;
2021import com .sonar .orchestrator .junit4 .OrchestratorRule ;
2122import com .sonar .orchestrator .junit4 .OrchestratorRuleBuilder ;
2223import com .sonar .orchestrator .locator .FileLocation ;
@@ -49,6 +50,8 @@ public class SlangRulingTest {
4950 public static void setUp () {
5051 OrchestratorRuleBuilder builder = OrchestratorRule .builderEnv ()
5152 .useDefaultAdminCredentialsForBuilds (true )
53+ .setEdition (Edition .ENTERPRISE_LW )
54+ .activateLicense ()
5255 .setSonarVersion (System .getProperty (SQ_VERSION_PROPERTY , DEFAULT_SQ_VERSION ))
5356 .addPlugin (MavenLocation .of ("org.sonarsource.sonar-lits-plugin" , "sonar-lits-plugin" , "0.10.0.2181" ));
5457
You can’t perform that action at this time.
0 commit comments