IDEA-50588 Don't suggest getX when completing setX() parameter (disprefer, actually)

This commit is contained in:
peter
2012-03-06 20:30:18 +04:00
parent 57f534cc43
commit c89084affd
5 changed files with 96 additions and 11 deletions
@@ -296,6 +296,13 @@ public class SmartTypeCompletionOrderingTest extends CompletionSortingTestCase {
assert 'FList.emptyList' in lookup.items[5].allLookupStrings
}
public void testDispreferGetterInSetterCall() {
checkPreferredItems 0, 'getZooColor', 'hashCode', 'color', 'getColor'
}
public void testPreferOtherGetterInSetterCall() {
checkPreferredItems 0, 'color', 'getColor', 'getZooColor', 'hashCode'
}
@Override
protected String getBasePath() {
return JavaTestUtil.getRelativeJavaTestDataPath() + BASE_PATH;