mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
create subclass: for private inner classes create implementation in the same containing class (IDEA-18954); IDEA-76741
This commit is contained in:
@@ -14,6 +14,19 @@ public class CreateSubclassTest extends MultiFileTestCase {
|
||||
public void testGenerics() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testInnerClass() throws Exception {
|
||||
doTest(new PerformAction() {
|
||||
@Override
|
||||
public void performAction(final VirtualFile rootDir, final VirtualFile rootAfter) throws Exception {
|
||||
PsiClass superClass = myJavaFacade.findClass("Test", ProjectScope.getAllScope(myProject));
|
||||
assertNotNull(superClass);
|
||||
final PsiClass inner = superClass.findInnerClassByName("Inner", false);
|
||||
assertNotNull(inner);
|
||||
CreateSubclassAction.createInnerClass(inner);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void doTest() throws Exception {
|
||||
doTest(new PerformAction() {
|
||||
|
||||
Reference in New Issue
Block a user