Search in sources :

Example 1 with Licenses

use of com.sonar.orchestrator.config.Licenses in project sonarlint-core by SonarSource.

the class LicenseTest method start.

@Before
public void start() {
    FileUtils.deleteQuietly(sonarUserHome.toFile());
    engine = new ConnectedSonarLintEngineImpl(ConnectedGlobalConfiguration.builder().setServerId("orchestrator").setSonarLintUserHome(sonarUserHome).setLogOutput((msg, level) -> System.out.println(msg)).build());
    licenses = new Licenses();
}
Also used : BeforeClass(org.junit.BeforeClass) URL(java.net.URL) Assertions.assertThat(org.assertj.core.api.Assertions.assertThat) ConnectedSonarLintEngineImpl(org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl) OrchestratorBuilder(com.sonar.orchestrator.OrchestratorBuilder) PropertyDeleteQuery(org.sonar.wsclient.services.PropertyDeleteQuery) ConnectedGlobalConfiguration(org.sonarsource.sonarlint.core.client.api.connected.ConnectedGlobalConfiguration) WsClient(org.sonarqube.ws.client.WsClient) After(org.junit.After) Assume(org.junit.Assume) PropertyUpdateQuery(org.sonar.wsclient.services.PropertyUpdateQuery) ClassRule(org.junit.ClassRule) Path(java.nio.file.Path) ExpectedException(org.junit.rules.ExpectedException) ConnectedSonarLintEngine(org.sonarsource.sonarlint.core.client.api.connected.ConnectedSonarLintEngine) Before(org.junit.Before) PropertyCreateQuery(org.sonar.wsclient.services.PropertyCreateQuery) Licenses(com.sonar.orchestrator.config.Licenses) AfterClass(org.junit.AfterClass) RemoveGroupWsRequest(org.sonarqube.ws.client.permission.RemoveGroupWsRequest) MavenLocation(com.sonar.orchestrator.locator.MavenLocation) UserParameters(org.sonar.wsclient.user.UserParameters) URLLocation(com.sonar.orchestrator.locator.URLLocation) Version(com.sonar.orchestrator.version.Version) FileLocation(com.sonar.orchestrator.locator.FileLocation) SetRequest(org.sonarqube.ws.client.setting.SetRequest) FileUtils(org.apache.commons.io.FileUtils) Test(org.junit.Test) ServerConfiguration(org.sonarsource.sonarlint.core.client.api.connected.ServerConfiguration) Rule(org.junit.Rule) SonarLintWrappedException(org.sonarsource.sonarlint.core.client.api.exceptions.SonarLintWrappedException) Assertions.fail(org.assertj.core.api.Assertions.fail) StringUtils(org.sonarsource.sonarlint.core.util.StringUtils) ResetRequest(org.sonarqube.ws.client.setting.ResetRequest) Orchestrator(com.sonar.orchestrator.Orchestrator) TemporaryFolder(org.junit.rules.TemporaryFolder) Licenses(com.sonar.orchestrator.config.Licenses) ConnectedSonarLintEngineImpl(org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl) Before(org.junit.Before)

Aggregations

Orchestrator (com.sonar.orchestrator.Orchestrator)1 OrchestratorBuilder (com.sonar.orchestrator.OrchestratorBuilder)1 Licenses (com.sonar.orchestrator.config.Licenses)1 FileLocation (com.sonar.orchestrator.locator.FileLocation)1 MavenLocation (com.sonar.orchestrator.locator.MavenLocation)1 URLLocation (com.sonar.orchestrator.locator.URLLocation)1 Version (com.sonar.orchestrator.version.Version)1 URL (java.net.URL)1 Path (java.nio.file.Path)1 FileUtils (org.apache.commons.io.FileUtils)1 Assertions.assertThat (org.assertj.core.api.Assertions.assertThat)1 Assertions.fail (org.assertj.core.api.Assertions.fail)1 After (org.junit.After)1 AfterClass (org.junit.AfterClass)1 Assume (org.junit.Assume)1 Before (org.junit.Before)1 BeforeClass (org.junit.BeforeClass)1 ClassRule (org.junit.ClassRule)1 Rule (org.junit.Rule)1 Test (org.junit.Test)1