mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inline parameter: check inner/local classes (IDEA-40703)
This commit is contained in:
@@ -126,6 +126,23 @@ public class InlineParameterTest extends LightCodeInsightTestCase {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
public void testRefNewInnerAvailable() throws Exception {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
public void testRefNewInnerFromMethod() throws Exception {
|
||||
try {
|
||||
doTest(false);
|
||||
}
|
||||
catch (BaseRefactoringProcessor.ConflictsInTestsException e) {
|
||||
assertEquals("Parameter initializer depends on class <b><code>Local</code></b> which is not available inside method and cannot be inlined", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public void testRefNewInnerInHierarchyAvailable() throws Exception {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
public void testRefNewTopLevel() throws Exception {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user