close all editors in LoadProjectTest.tearDown to reduce the number of console exceptions when it fails

This commit is contained in:
peter
2015-05-21 18:00:22 +02:00
parent 9d15070779
commit 85fcb6d85c
@@ -21,6 +21,7 @@ import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.fileEditor.FileEditor;
import com.intellij.openapi.fileEditor.FileEditorManager;
import com.intellij.openapi.fileEditor.OpenFileDescriptor;
import com.intellij.openapi.fileEditor.ex.FileEditorManagerEx;
import com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl;
import com.intellij.openapi.project.ProjectManager;
import com.intellij.openapi.project.ex.ProjectManagerEx;
@@ -49,6 +50,7 @@ public class LoadProjectTest extends PlatformTestCase {
@Override
protected void tearDown() throws Exception {
FileEditorManagerEx.getInstanceEx(getProject()).closeAllFiles();
myProject = null;
super.tearDown();
}