inline parameter: check visibility access (IDEA-52169)

This commit is contained in:
anna
2010-02-11 17:56:32 +03:00
parent 292373e213
commit 208129c56b
3 changed files with 36 additions and 2 deletions
@@ -219,6 +219,15 @@ public class InlineParameterTest extends LightCodeInsightTestCase {
}
}
public void testVisibility() throws Exception {
try {
doTest(false);
}
catch (BaseRefactoringProcessor.ConflictsInTestsException e) {
assertEquals("Parameter initializer depends on value which is not available inside method", e.getMessage());
}
}
private void doTest(final boolean createLocal) throws Exception {
getProject().putUserData(InlineParameterExpressionProcessor.CREATE_LOCAL_FOR_TESTS,createLocal);