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();
}