From ccb4d4a1179d0c0d28dfe8b7f7440e3b72a2b760 Mon Sep 17 00:00:00 2001 From: anna Date: Wed, 14 Nov 2012 19:20:15 +0100 Subject: [PATCH] testdata for IDEA-94875 --- .../moveInstanceMethod/OverloadingMethods1.java | 11 +++++++++++ .../OverloadingMethods1.java.after | 12 ++++++++++++ .../moveMethod/MoveInstanceMethodTest.java | 1 + 3 files changed, 24 insertions(+) create mode 100644 java/java-tests/testData/refactoring/moveInstanceMethod/OverloadingMethods1.java create mode 100644 java/java-tests/testData/refactoring/moveInstanceMethod/OverloadingMethods1.java.after diff --git a/java/java-tests/testData/refactoring/moveInstanceMethod/OverloadingMethods1.java b/java/java-tests/testData/refactoring/moveInstanceMethod/OverloadingMethods1.java new file mode 100644 index 000000000000..e3b7902de3bc --- /dev/null +++ b/java/java-tests/testData/refactoring/moveInstanceMethod/OverloadingMethods1.java @@ -0,0 +1,11 @@ +class B extends A { + void n(C c){ + m(); + } +} + +class A { + void m(){} +} + +class C {} \ No newline at end of file diff --git a/java/java-tests/testData/refactoring/moveInstanceMethod/OverloadingMethods1.java.after b/java/java-tests/testData/refactoring/moveInstanceMethod/OverloadingMethods1.java.after new file mode 100644 index 000000000000..2b1770571be7 --- /dev/null +++ b/java/java-tests/testData/refactoring/moveInstanceMethod/OverloadingMethods1.java.after @@ -0,0 +1,12 @@ +class B extends A { +} + +class A { + void m(){} +} + +class C { + void n(B b){ + b.m(); + } +} \ No newline at end of file diff --git a/java/java-tests/testSrc/com/intellij/refactoring/moveMethod/MoveInstanceMethodTest.java b/java/java-tests/testSrc/com/intellij/refactoring/moveMethod/MoveInstanceMethodTest.java index da41d701a2f2..c2234a937ae6 100644 --- a/java/java-tests/testSrc/com/intellij/refactoring/moveMethod/MoveInstanceMethodTest.java +++ b/java/java-tests/testSrc/com/intellij/refactoring/moveMethod/MoveInstanceMethodTest.java @@ -56,6 +56,7 @@ public class MoveInstanceMethodTest extends LightRefactoringTestCase { public void testThisInAnonymous() throws Exception { doTest(true, 0); } public void testOverloadingMethods() throws Exception { doTest(true, 0); } + public void testOverloadingMethods1() throws Exception { doTest(true, 0); } public void testPolyadicExpr() throws Exception { doTest(true, 0); }