void (int tabPlacement, boolean goForward) { UISettings.getInstance().getState().setEditorTabPlacement(tabPlacement); manager.openFile(getFile("/src/1.txt"), true); manager.openFile(getFile("/src/2.txt"), true); manager.openFile(getFile("/src/3.txt"), true); List<?> filesToShow = Switcher.SwitcherPanel.getFilesToShowForTest(getProject()); int selectedItem = Switcher.SwitcherPanel.getFilesSelectedIndexForTest(getProject(), goForward); assertEquals(goForward ? 1 : 2, selectedItem); assertEquals(3, filesToShow.size()); assertEquals(getFile("/src/3.txt"), filesToShow.get(0)); assertEquals(getFile("/src/2.txt"), filesToShow.get(1)); assertEquals(getFile("/src/1.txt"), filesToShow.get(2)); }