public class CreateImportQuickFixProposalTest extends AbstractBeanFileQuickfixTestCase {
private void applyProposal(String importFilePath) {
IDOMNode beanNode = QuickfixTestUtil.getNode(BeansSchemaConstants.ELEM_BEAN, "addImportTest",
beansNode.getChildNodes());
AttrImpl parentAttr = (AttrImpl) beanNode.getAttributes().getNamedItem(BeansSchemaConstants.ATTR_PARENT);
ITextRegion valueRegion = parentAttr.getValueRegion();
int offset = getOffset(valueRegion, beanNode);
int length = getLength(valueRegion, false);
IFile configFile = (IFile) project.findMember(importFilePath);
IBeansConfig config = BeansCorePlugin.getModel().getConfig(configFile);
IBean importBean = BeansModelUtils.getBean(parentAttr.getValue(), config);
IBeansProject beanProject = BeansCorePlugin.getModel().getProject(project);
CreateImportQuickFixProposal proposal = new CreateImportQuickFixProposal(offset, length, false, importBean,
beanNode, beanProject, file);