void (@Nullable @PsiModifier.ModifierConstant String newVisibility, @Nullable String newName, @Nullable String newReturnType, @NotNull List<SimpleInfo> parameterInfo, @NotNull List<ThrownExceptionInfo> exceptionInfo, final boolean generateDelegate) { final String javaTestName = getTestName(false) + ".java"; final String groovyTestName = getTestName(false) + ".groovy"; final File javaSrc = new File(getTestDataPath() + "/" + javaTestName); if (javaSrc.exists()) { myFixture.copyFileToProject(javaTestName); } myFixture.configureByFile(groovyTestName); executeRefactoring(newVisibility, newName, newReturnType, new SimpleParameterGen(parameterInfo, getProject()), new SimpleExceptionsGen(exceptionInfo), generateDelegate); if (javaSrc.exists()) { myFixture.checkResultByFile(javaTestName, getTestName(false) + "_after.java", true); } myFixture.checkResultByFile(groovyTestName, getTestName(false) + "_after.groovy", true); }