use of com.intellij.codeInsight.generation.MemberChooserObjectBase in project intellij-plugins by JetBrains.
the class RubyMotionOverrideTest method doTest.
private void doTest(@NotNull final String name, @NotNull final String result) throws Exception {
final Symbol controller = SymbolUtil.findSymbol(getProject(), Type.CLASS, "TestController", null);
assertNotNull(controller);
final List<ClassMember> list = RubyOverrideHandler.createOverrideMembers(controller, myFixture.getFile());
final StringBuilder namesInClass = new StringBuilder();
for (ClassMember classMember : list) {
MemberChooserObjectBase methodMember = (MemberChooserObjectBase) classMember;
if (name.equals(methodMember.getText())) {
final PsiElement element = OverriddenMethodGenerator.generate(classMember, LanguageLevel.RUBY19);
assertNotNull(element);
namesInClass.append(element.getText()).append("\n");
}
}
assertEquals(result, namesInClass.toString().trim());
}
Aggregations