This commit is contained in:
Dmitry Avdeev
2012-02-26 19:50:18 +04:00
parent e2d7315aee
commit c89abe9dc8
3 changed files with 3 additions and 8 deletions
@@ -202,7 +202,7 @@ public class ApplicationImpl extends ComponentManagerImpl implements Application
boolean isHeadless,
boolean isCommandLine,
@NotNull String appName,
Splash splash) {
@Nullable Splash splash) {
super(null);
ApplicationManager.setApplication(this, myLastDisposable); // reset back to null only when all components already disposed
@@ -42,12 +42,7 @@ public class _LastInSuiteTest extends TestCase {
UIUtil.invokeAndWaitIfNeeded(new Runnable() {
@Override
public void run() {
try {
LightPlatformTestCase.disposeApplication();
}
catch (Exception e) {
throw new RuntimeException(e);
}
LightPlatformTestCase.disposeApplication();
}
});
@@ -155,7 +155,7 @@ public abstract class LightPlatformTestCase extends UsefulTestCase implements Da
}
@TestOnly
public static void disposeApplication() throws Exception {
public static void disposeApplication() {
if (ourApplication != null) {
Disposer.dispose(ourApplication);
ourApplication = null;