pull up: preserve/remove override from pulled method according to super classes structure

This commit is contained in:
anna
2011-09-05 19:03:51 +02:00
parent 5471e8e202
commit 25b5ddcbc8
6 changed files with 59 additions and 9 deletions

View File

@@ -105,6 +105,14 @@ public class PullUpTest extends LightCodeInsightTestCase {
doTest(false, new RefactoringTestUtil.MemberDescriptor("foo", PsiMethod.class));
}
public void testRemoveOverrideFromPulledMethod() throws Exception {
doTest(false, new RefactoringTestUtil.MemberDescriptor("foo", PsiMethod.class));
}
public void testPreserveOverrideInPulledMethod() throws Exception {
doTest(false, new RefactoringTestUtil.MemberDescriptor("foo", PsiMethod.class));
}
private void doTest(RefactoringTestUtil.MemberDescriptor... membersToFind) throws Exception {
doTest(true, membersToFind);
}