assertEquals("Bar2", outlet.getBar());
Map<String, MergepointMapping> mergepointMappings
= outlet.getMergepointMappings();
assertEquals(3, mergepointMappings.size());
{
MergepointMapping mergepointMapping
= mergepointMappings.get("properties");
assertEquals(1, mergepointMapping.getActions().size());
MergepointAction action
= mergepointMapping.getActions().get(0);
assertEquals(
new TraverseAllAction(
"entry",
"org.apache.torque.generator.velocity.propertyCopy",
true),
action);
assertEquals("inputElement", outlet.getInputElementName());
}
{
// mergepoint from the separate mapping in child
MergepointMapping mergepointMapping
= mergepointMappings.get("mergepointName");
assertEquals(1, mergepointMapping.getActions().size());
MergepointAction action
= mergepointMapping.getActions().get(0);
assertEquals(
new ApplyAction(
null,
"someOutletAction",
false),
action);
assertEquals("inputElement", outlet.getInputElementName());
}
{
// other mergepoint from the separate mapping in child
MergepointMapping mergepointMapping
= mergepointMappings.get("mergepointFromParent");
assertEquals(1, mergepointMapping.getActions().size());
MergepointAction action
= mergepointMapping.getActions().get(0);
assertEquals(
new ApplyAction(
null,
"newOutletAction",
true),