Search in sources :

Example 1 with Level

use of org.sonarsource.sonarlint.core.client.api.common.LogOutput.Level in project sonarlint-core by SonarSource.

the class StandaloneNoPluginMediumTest method prepare.

@Before
public void prepare() throws IOException {
    LogOutput logOutput = (msg, level) -> logs.put(level, msg);
    sonarlint = new StandaloneSonarLintEngineImpl(StandaloneGlobalConfiguration.builder().setLogOutput(logOutput).build());
    baseDir = temp.newFolder();
}
Also used : LinkedListMultimap(com.google.common.collect.LinkedListMultimap) Arrays(java.util.Arrays) ImmutableMap(com.google.common.collect.ImmutableMap) TestUtils(org.sonarsource.sonarlint.core.TestUtils) Assertions.assertThat(org.assertj.core.api.Assertions.assertThat) IOException(java.io.IOException) FileUtils(org.apache.commons.io.FileUtils) Test(org.junit.Test) Multimap(com.google.common.collect.Multimap) Level(org.sonarsource.sonarlint.core.client.api.common.LogOutput.Level) ClientInputFile(org.sonarsource.sonarlint.core.client.api.common.analysis.ClientInputFile) File(java.io.File) StandaloneSonarLintEngineImpl(org.sonarsource.sonarlint.core.StandaloneSonarLintEngineImpl) StandaloneAnalysisConfiguration(org.sonarsource.sonarlint.core.client.api.standalone.StandaloneAnalysisConfiguration) Rule(org.junit.Rule) AnalysisResults(org.sonarsource.sonarlint.core.client.api.common.analysis.AnalysisResults) StandaloneGlobalConfiguration(org.sonarsource.sonarlint.core.client.api.standalone.StandaloneGlobalConfiguration) After(org.junit.After) TemporaryFolder(org.junit.rules.TemporaryFolder) LogOutput(org.sonarsource.sonarlint.core.client.api.common.LogOutput) StandaloneSonarLintEngine(org.sonarsource.sonarlint.core.client.api.standalone.StandaloneSonarLintEngine) Before(org.junit.Before) LogOutput(org.sonarsource.sonarlint.core.client.api.common.LogOutput) StandaloneSonarLintEngineImpl(org.sonarsource.sonarlint.core.StandaloneSonarLintEngineImpl) Before(org.junit.Before)

Aggregations

ImmutableMap (com.google.common.collect.ImmutableMap)1 LinkedListMultimap (com.google.common.collect.LinkedListMultimap)1 Multimap (com.google.common.collect.Multimap)1 File (java.io.File)1 IOException (java.io.IOException)1 Arrays (java.util.Arrays)1 FileUtils (org.apache.commons.io.FileUtils)1 Assertions.assertThat (org.assertj.core.api.Assertions.assertThat)1 After (org.junit.After)1 Before (org.junit.Before)1 Rule (org.junit.Rule)1 Test (org.junit.Test)1 TemporaryFolder (org.junit.rules.TemporaryFolder)1 StandaloneSonarLintEngineImpl (org.sonarsource.sonarlint.core.StandaloneSonarLintEngineImpl)1 TestUtils (org.sonarsource.sonarlint.core.TestUtils)1 LogOutput (org.sonarsource.sonarlint.core.client.api.common.LogOutput)1 Level (org.sonarsource.sonarlint.core.client.api.common.LogOutput.Level)1 AnalysisResults (org.sonarsource.sonarlint.core.client.api.common.analysis.AnalysisResults)1 ClientInputFile (org.sonarsource.sonarlint.core.client.api.common.analysis.ClientInputFile)1 StandaloneAnalysisConfiguration (org.sonarsource.sonarlint.core.client.api.standalone.StandaloneAnalysisConfiguration)1