check for conflicts with escalate visibility setting on (IDEA-88719)

This commit is contained in:
anna
2012-08-01 16:54:11 +02:00
parent 03da4cdaa0
commit 4cdf6d94de
4 changed files with 25 additions and 1 deletions
@@ -0,0 +1,10 @@
class Foo {
}
class FooImpl extends Foo {
private void fo<caret>o(){}
void bar() {
foo();
}
}
@@ -0,0 +1,10 @@
class Foo {
protected void foo(){}
}
class FooImpl extends Foo {
void bar() {
foo();
}
}
@@ -117,6 +117,10 @@ public class PullUpTest extends LightRefactoringTestCase {
public void testTypeParamsConflictingNames() throws Exception {
doTest(false, new RefactoringTestUtil.MemberDescriptor("foo", PsiMethod.class));
}
public void testEscalateVisibility() throws Exception {
doTest(false, new RefactoringTestUtil.MemberDescriptor("foo", PsiMethod.class));
}
private void doTest(RefactoringTestUtil.MemberDescriptor... membersToFind) throws Exception {