Search in sources :

Example 1 with GlobalLogOutput

use of org.sonarlint.intellij.util.GlobalLogOutput in project sonarlint-intellij by SonarSource.

the class UpdateCheckerTest method before.

@Before
public void before() throws InvalidBindingException {
    MockitoAnnotations.initMocks(this);
    settings = new SonarLintProjectSettings();
    settings.setProjectKey("key");
    settings.setServerId("serverId");
    server = createServer();
    super.register(app, SonarApplication.class, mock(SonarApplication.class));
    super.register(app, GlobalLogOutput.class, new GlobalLogOutput(mock(ProjectManager.class)));
    when(bindingManager.getSonarQubeServer()).thenReturn(server);
    when(bindingManager.getConnectedEngine()).thenReturn(engine);
    updateChecker = new UpdateChecker(project, bindingManager, settings, notifications);
}
Also used : SonarLintProjectSettings(org.sonarlint.intellij.config.project.SonarLintProjectSettings) SonarApplication(org.sonarlint.intellij.SonarApplication) GlobalLogOutput(org.sonarlint.intellij.util.GlobalLogOutput) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 SonarApplication (org.sonarlint.intellij.SonarApplication)1 SonarLintProjectSettings (org.sonarlint.intellij.config.project.SonarLintProjectSettings)1 GlobalLogOutput (org.sonarlint.intellij.util.GlobalLogOutput)1