use of org.sonarsource.sonarlint.core.client.api.common.analysis.IssueListener in project sonarlint-intellij by SonarSource.
the class SonarLintAnalyzerTest method testAnalysis.
@Test
public void testAnalysis() {
VirtualFile file = mock(VirtualFile.class);
when(file.getPath()).thenReturn("project/testFile");
IssueListener listener = mock(IssueListener.class);
when(app.getDefaultModalityState()).thenReturn(ModalityState.NON_MODAL);
analyzer.analyzeModule(module, Collections.singleton(file), listener, mock(ProgressMonitor.class));
verify(facade).startAnalysis(anyList(), eq(listener), eq(Collections.emptyMap()), any(ProgressMonitor.class));
}
Aggregations