diff --git a/platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/notification/ExternalSystemNotificationManager.java b/platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/notification/ExternalSystemNotificationManager.java index 0b811f1f0f11..9f72b4a225cd 100644 --- a/platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/notification/ExternalSystemNotificationManager.java +++ b/platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/notification/ExternalSystemNotificationManager.java @@ -156,6 +156,8 @@ public class ExternalSystemNotificationManager implements Disposable { public void showNotification(@NotNull final ProjectSystemId externalSystemId, @NotNull final NotificationData notificationData, @Nullable Key notificationKey) { + if(ApplicationManager.getApplication().isUnitTestMode()) return; + if (notificationKey != null && isNotificationActive(notificationKey)) return; myUpdater.submit(() -> { if (myProject.isDisposed()) return; @@ -221,6 +223,8 @@ public class ExternalSystemNotificationManager implements Disposable { @NotNull final NotificationSource notificationSource, @NotNull final ProjectSystemId externalSystemId) { myMessageCounter.remove(groupName, notificationSource, externalSystemId); + if(ApplicationManager.getApplication().isUnitTestMode()) return; + myUpdater.submit(() -> { if (myProject.isDisposed()) return; for (Iterator iterator = myNotifications.iterator(); iterator.hasNext(); ) {