inspection view: do not add listeners in test mode
authorDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Tue, 20 Sep 2016 17:00:58 +0000 (20:00 +0300)
committerDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Tue, 20 Sep 2016 17:00:58 +0000 (20:00 +0300)
platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java

index 5135de979590fa4978e43e7bb9c10179c27594e2..9e9e7c6479e56abedaac7060fe0fd99bbf8b54ff 100644 (file)
@@ -267,6 +267,9 @@ public class InspectionResultsView extends JPanel implements Disposable, Occuren
   }
 
   private void initTreeListeners() {
+    if (ApplicationManager.getApplication().isUnitTestMode()) {
+      return;
+    }
     myTree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() {
       @Override
       public void valueChanged(TreeSelectionEvent e) {