From e50721e044ec9fd34246a9f147d67a5f7e872a21 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Mon, 15 Sep 2014 16:48:23 +0400 Subject: [PATCH] exception --- .../intellij/openapi/progress/util/ProgressIndicatorTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/progress/util/ProgressIndicatorTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/progress/util/ProgressIndicatorTest.java index a93b3eef8376..4014541202fb 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/progress/util/ProgressIndicatorTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/progress/util/ProgressIndicatorTest.java @@ -49,7 +49,7 @@ public class ProgressIndicatorTest extends LightPlatformTestCase { fail("Please restore ProgressIndicatorBase.checkCanceled() check!"); } catch(ProcessCanceledException ex) { - assertTrue("Should have no stackframe", ex.getStackTrace().length == 0); + assertTrue("Should have no stackframe", ApplicationManager.getApplication().isInternal() ? ex.getStackTrace().length != 0 : ex.getStackTrace().length == 0); } } @@ -288,7 +288,6 @@ public class ProgressIndicatorTest extends LightPlatformTestCase { @Override public void initStateFrom(@NotNull ProgressIndicator indicator) { - throw new RuntimeException(); } @NotNull