use of org.craftercms.core.xml.mergers.impl.cues.MergeCueResolver in project core by craftercms.
the class MergeParentAndChildMergeCueTest method setUpTestMergeCue.
private void setUpTestMergeCue() {
ElementMergeMatcherImpl elementMergeMatcher = new ElementMergeMatcherImpl();
elementMergeMatcher.setIdAttributeName(new QName(ID_ATTR_NAME));
MergeCueResolver mergeCueResolver = new MergeCueResolver() {
@Override
public MergeCueContext getMergeCue(Element parent, Element child) {
return new MergeCueContext(mergeCue, parent, child, Collections.<String, String>emptyMap());
}
};
mergeCue = new MergeParentAndChildMergeCue();
mergeCue.setElementMergeMatcher(elementMergeMatcher);
mergeCue.setMergeCueResolver(mergeCueResolver);
mergeCue.setMergeOrderParamName(MERGE_ORDER_PARAM_NAME);
mergeCue.setDefaultMergeOrder(DEFAULT_MERGE_ORDER);
}
Aggregations