a test for IDEA-95228 Copy reference does not work correctly on overloaded methods.

This commit is contained in:
peter
2012-11-21 15:30:14 +01:00
parent 909970b292
commit b203c02fbd
@@ -58,6 +58,32 @@ public class CopyReferenceTest extends LightCodeInsightFixtureTestCase {
myFixture.checkResult "/a.java:2"
}
public void _testMethodOverloadCopy() {
myFixture.configureByText 'a.java', '''
class Koo {
public void foo(int a) { }
public void foo(boolean a) { }
{
fo<caret>o(true);
}
}'''
performCopy()
myFixture.configureByText 'b.java', '''
/**
* <caret>
*/
class Koo2 { }
'''
performPaste()
myFixture.checkResult '''
/**
* Koo#foo(boolean)<caret>
*/
class Koo2 { }
'''
}
private void doTest() throws Exception {
String name = getTestName(false);
myFixture.configureByFile(name + ".java");