@Test
public void testResolveMergepointMappings() throws ConfigurationException
{
List<Outlet> outlets = new ArrayList<Outlet>();
outlets.add(new JavaOutlet(
new QualifiedName("test.outlet")));
outlets.add(new PackageToPathOutlet(
new QualifiedName("test.outlet.2")));
List<MergepointMapping> mergepointMappings
= new ArrayList<MergepointMapping>();
mergepointMappings.add(
new MergepointMapping("test.outlet.testMergepoint"));
mergepointMappings.get(0).addAction(
new ApplyAction(".", "test.outlet.2", false));
OutletConfiguration outletConfiguration = new OutletConfiguration(
outlets,
mergepointMappings,
unitDescriptor);
outletConfiguration.resolveMergepointMappings();
Outlet outlet = outletConfiguration.getOutlet(
new QualifiedName("test.outlet"));
assertEquals(1, outlet.getMergepointMappings().size());
assertEquals(
1,
outlet.getMergepointMapping("testMergepoint")
.getActions().size());