void () { VirtualFile src = ProjectRootManager.getInstance(getProject()).getContentSourceRoots()[0]; VirtualFile a = src.findFileByRelativePath("/x/AClass.java"); assertNotNull(a); PsiFile fileA = getPsiManager().findFile(a); assertNotNull(fileA); fileA.navigate(true); Editor editorA = FileEditorManager.getInstance(getProject()).openTextEditor(new OpenFileDescriptor(getProject(), a), true); PsiDocumentManager.getInstance(getProject()).commitAllDocuments(); EditorTestUtil.waitForLoading(editorA); assertNotNull(editorA); CodeInsightTestFixtureImpl.instantiateAndRun(fileA, editorA, new int[] {Pass.EXTERNAL_TOOLS}, false); VirtualFile b = src.findFileByRelativePath("/x/BClass.java"); assertNotNull(b); PsiFile fileB = getPsiManager().findFile(b); assertNotNull(fileB); fileB.navigate(true); Editor editorB = FileEditorManager.getInstance(getProject()).openTextEditor(new OpenFileDescriptor(getProject(), b), true); PsiDocumentManager.getInstance(getProject()).commitAllDocuments(); assertNotNull(editorB); CodeInsightTestFixtureImpl.instantiateAndRun(fileB, editorB, new int[]{Pass.EXTERNAL_TOOLS}, false); FileEditor[] allEditors = FileEditorManager.getInstance(getProject()).getAllEditors(); assertEquals(2, allEditors.length); }