Search in sources :

Example 11 with SonarLintProjectSettings

use of org.sonarlint.intellij.config.project.SonarLintProjectSettings in project sonarlint-intellij by SonarSource.

the class ToolWindowVerboseModeActionTest method prepare.

@Before
public void prepare() {
    settings = new SonarLintProjectSettings();
    super.register(SonarLintProjectSettings.class, settings);
    action = new ToolWindowVerboseModeAction();
    event = SonarLintTestUtils.createAnActionEvent(project);
}
Also used : SonarLintProjectSettings(org.sonarlint.intellij.config.project.SonarLintProjectSettings) Before(org.junit.Before)

Example 12 with SonarLintProjectSettings

use of org.sonarlint.intellij.config.project.SonarLintProjectSettings in project sonarlint-intellij by SonarSource.

the class ProjectLogOutputTest method setUp.

@Before
public void setUp() {
    mockConsole = mock(SonarLintConsole.class);
    settings = new SonarLintProjectSettings();
    settings.setAnalysisLogsEnabled(true);
    logOutput = new ProjectLogOutput(mockConsole, settings);
}
Also used : SonarLintProjectSettings(org.sonarlint.intellij.config.project.SonarLintProjectSettings) SonarLintConsole(org.sonarlint.intellij.ui.SonarLintConsole) Before(org.junit.Before)

Example 13 with SonarLintProjectSettings

use of org.sonarlint.intellij.config.project.SonarLintProjectSettings in project sonarlint-intellij by SonarSource.

the class StandaloneSonarLintFacadeTest method setUp.

@Before
public void setUp() {
    MockitoAnnotations.initMocks(this);
    settings = new SonarLintProjectSettings();
    when(project.getBasePath()).thenReturn("");
    facade = new StandaloneSonarLintFacade(settings, console, project, engine);
}
Also used : SonarLintProjectSettings(org.sonarlint.intellij.config.project.SonarLintProjectSettings) Before(org.junit.Before)

Aggregations

SonarLintProjectSettings (org.sonarlint.intellij.config.project.SonarLintProjectSettings)13 Before (org.junit.Before)9 Project (com.intellij.openapi.project.Project)5 ArrayList (java.util.ArrayList)3 List (java.util.List)3 ActionPlaces (com.intellij.openapi.actionSystem.ActionPlaces)2 AnActionEvent (com.intellij.openapi.actionSystem.AnActionEvent)2 CommonDataKeys (com.intellij.openapi.actionSystem.CommonDataKeys)2 DumbAwareAction (com.intellij.openapi.project.DumbAwareAction)2 VirtualFile (com.intellij.openapi.vfs.VirtualFile)2 Arrays (java.util.Arrays)2 Collectors (java.util.stream.Collectors)2 SonarApplication (org.sonarlint.intellij.SonarApplication)2 ExclusionItem (org.sonarlint.intellij.config.project.ExclusionItem)2 ProjectConfigurationListener (org.sonarlint.intellij.messages.ProjectConfigurationListener)2 SonarLintConsole (org.sonarlint.intellij.ui.SonarLintConsole)2 SonarLintUtils (org.sonarlint.intellij.util.SonarLintUtils)2 JBList (com.intellij.ui.components.JBList)1 HashMap (java.util.HashMap)1 LinkedList (java.util.LinkedList)1