Search in sources :

Example 1 with Daemon

use of org.sonarlint.daemon.Daemon in project sonarlint-core by SonarSource.

the class ProxyLogOutputTest method testProxyLogError.

@Test
public void testProxyLogError() {
    Daemon daemon = mock(Daemon.class);
    ProxyLogOutput log = new ProxyLogOutput(daemon);
    doThrow(StatusRuntimeException.class).when(observer).onNext(any(LogEvent.class));
    log.setObserver(observer);
    log.log("msg", Level.DEBUG);
    verify(daemon).stop();
}
Also used : Daemon(org.sonarlint.daemon.Daemon) LogEvent(org.sonarsource.sonarlint.daemon.proto.SonarlintDaemon.LogEvent) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 Daemon (org.sonarlint.daemon.Daemon)1 LogEvent (org.sonarsource.sonarlint.daemon.proto.SonarlintDaemon.LogEvent)1