use of com.intellij.codeInsight.generation.GenerateConstructorHandler in project intellij-community by JetBrains.
the class GenerateConstructorTest method doTest.
private void doTest(boolean preSelect) {
String name = getTestName(false);
myFixture.configureByFile("before" + name + ".java");
new GenerateConstructorHandler() {
@Override
protected ClassMember[] chooseMembers(ClassMember[] members, boolean allowEmpty, boolean copyJavadoc, Project project, Editor editor) {
if (preSelect) {
List<ClassMember> preselection = GenerateConstructorHandler.preselect(members);
return preselection.toArray(new ClassMember[preselection.size()]);
} else {
return members;
}
}
}.invoke(getProject(), getEditor(), getFile());
myFixture.checkResultByFile("after" + name + ".java");
}
Aggregations