extract method suggester: unique parameter names (IDEA-152334); update output variables when suggester replaces the initial method

This commit is contained in:
Anna Kozlova
2016-03-01 15:22:35 +01:00
parent c5ea70c7ff
commit 5673683e95
5 changed files with 80 additions and 0 deletions
@@ -675,6 +675,10 @@ public class ExtractMethodTest extends LightCodeInsightTestCase {
doDuplicatesTest();
}
public void testSuggestChangeSignatureWithOutputVariables() throws Exception {
doDuplicatesTest();
}
public void testSuggestChangeSignatureWithChangedParameterName() throws Exception {
configureByFile(BASE_PATH + getTestName(false) + ".java");
boolean success = performExtractMethod(true, true, getEditor(), getFile(), getProject(), false, null, false, "p");