don't show parameter hints on completion of blacklisted methods with one parameter

This commit is contained in:
Dmitry Batrak
2017-04-19 14:36:37 +03:00
parent af08eeeeb9
commit 9a70984732
4 changed files with 45 additions and 18 deletions
@@ -152,6 +152,12 @@ public class CompletionHintsTest extends LightFixtureCompletionTestCase {
myFixture.checkResult("class C { void m() { System.setProperty(System.getProperty(, ), )<caret> } }");
}
public void testNoHintsForMethodWithOneParameterFromBlackList() {
myFixture.configureByText(JavaFileType.INSTANCE, "class C { void m() { System.getPro<caret> } }");
complete("getProperty(String key)");
myFixture.checkResultWithInlays("class C { void m() { System.getProperty() } }");
}
private void showParameterInfo() {
myFixture.performEditorAction("ParameterInfo");
UIUtil.dispatchAllInvocationEvents();