void () { VirtualFile file1 = getFile("/src/1.txt"); assertNotNull(file1); manager.openFile(file1, false); VirtualFile file2 = getFile("/src/2.txt"); assertNotNull(file2); manager.openFile(file2, true); EditorWindow primaryWindow = manager.getCurrentWindow();//1.txt and selected 2.txt assertNotNull(primaryWindow); manager.createSplitter(SwingConstants.VERTICAL, primaryWindow); EditorWindow secondaryWindow = manager.getNextWindow(primaryWindow);//2.txt only, selected and focused assertNotNull(secondaryWindow); UISettings.getInstance().setEditorTabPlacement(UISettings.TABS_NONE); // here we have to ignore 'searchForSplitter' manager.openFile(file1, null, new FileEditorOpenOptions().withReuseOpen().withRequestFocus()); assertEquals(2, primaryWindow.getTabCount()); assertEquals(2, secondaryWindow.getTabCount()); assertOrderedEquals(primaryWindow.getFileList(), file1, file2); assertOrderedEquals(secondaryWindow.getFileList(), file2, file1); }