void (String fileNameToRenameBefore, String fileNameToCheckBefore, String fileNameToRenameAfter, String fileNameToCheckAfter) { final PsiFile toRenameFile = myFixture.addFileToProject(fileNameToRenameBefore, ""); final PsiFile toCheck = myFixture.addFileToProject(fileNameToCheckBefore, ""); final RenameProcessor processor = new RenameProcessor(getProject(), toRenameFile, fileNameToRenameAfter, true, true); for (AutomaticRenamerFactory factory : AutomaticRenamerFactory.EP_NAME.getExtensionList()) { if (factory instanceof ResourceBundleRenamerFactory) { processor.addRenamerFactory(factory); } } processor.run(); assertEquals(fileNameToCheckAfter, toCheck.getName()); }