use of com.mulesoft.tools.migration.library.gateway.TestConstants.POLICY_APPLICATION_MODEL_PATH in project mule-migration-assistant by mulesoft.
the class ClientIdEnforcementPolicyMigrationTestCase method setUp.
@Before
public void setUp() throws Exception {
ApplicationModel.ApplicationModelBuilder amb = new ApplicationModel.ApplicationModelBuilder();
amb.withProjectType(ProjectType.MULE_THREE_POLICY);
amb.withProjectBasePath(POLICY_APPLICATION_MODEL_PATH);
appModel = amb.build();
doc = getDocument(this.getClass().getClassLoader().getResource(configPath.toString()).toURI().getPath());
ClientIdEnforcementMigrationTask clientIdEnforcementMigrationTask = new ClientIdEnforcementMigrationTask();
clientIdEnforcementMigrationTask.setApplicationModel(appModel);
steps = clientIdEnforcementMigrationTask.getSteps().stream().filter(step -> step instanceof AbstractApplicationModelMigrationStep).collect(toList());
MuleElementsMigrationTask muleElementsMigrationTask = new MuleElementsMigrationTask();
muleElementsMigrationTask.setApplicationModel(appModel);
List<MigrationStep> policyUtilsMigrationSteps = muleElementsMigrationTask.getSteps().stream().filter(step -> step instanceof AbstractApplicationModelMigrationStep).collect(toList());
steps.addAll(policyUtilsMigrationSteps);
BasicStructureMigrationTask basicStructureTask = new BasicStructureMigrationTask();
List<MigrationStep> basicStructureSteps = basicStructureTask.getSteps().stream().filter(step -> step instanceof AbstractApplicationModelMigrationStep).collect(toList());
steps.addAll(basicStructureSteps);
}
use of com.mulesoft.tools.migration.library.gateway.TestConstants.POLICY_APPLICATION_MODEL_PATH in project mule-migration-assistant by mulesoft.
the class FederationPolicyMigrationTestCase method setUp.
@Before
public void setUp() throws Exception {
ApplicationModel.ApplicationModelBuilder amb = new ApplicationModel.ApplicationModelBuilder();
amb.withProjectType(ProjectType.MULE_THREE_POLICY);
amb.withProjectBasePath(POLICY_APPLICATION_MODEL_PATH);
appModel = amb.build();
doc = getDocument(this.getClass().getClassLoader().getResource(configPath.toString()).toURI().getPath());
FederationMigrationTask task = new FederationMigrationTask();
task.setApplicationModel(appModel);
steps = task.getSteps().stream().filter(step -> step instanceof AbstractApplicationModelMigrationStep).collect(toList());
BasicStructureMigrationTask basicStructureTask = new BasicStructureMigrationTask();
basicStructureTask.setApplicationModel(appModel);
List<MigrationStep> basicStructureSteps = basicStructureTask.getSteps().stream().filter(step -> step instanceof AbstractApplicationModelMigrationStep).collect(toList());
steps.addAll(basicStructureSteps);
}
use of com.mulesoft.tools.migration.library.gateway.TestConstants.POLICY_APPLICATION_MODEL_PATH in project mule-migration-assistant by mulesoft.
the class IpFilterPolicyMigrationTestCase method setUp.
@Before
public void setUp() throws Exception {
ApplicationModel.ApplicationModelBuilder amb = new ApplicationModel.ApplicationModelBuilder();
amb.withProjectType(ProjectType.MULE_THREE_POLICY);
amb.withProjectBasePath(POLICY_APPLICATION_MODEL_PATH);
appModel = amb.build();
doc = getDocument(this.getClass().getClassLoader().getResource(configPath.toString()).toURI().getPath());
IpFilterMigrationTask ipFilterMigrationTask = new IpFilterMigrationTask();
ipFilterMigrationTask.setApplicationModel(appModel);
steps = ipFilterMigrationTask.getSteps().stream().filter(step -> step instanceof AbstractApplicationModelMigrationStep).collect(toList());
MuleElementsMigrationTask muleElementsMigrationTask = new MuleElementsMigrationTask();
muleElementsMigrationTask.setApplicationModel(appModel);
List<MigrationStep> policyUtilsMigrationSteps = muleElementsMigrationTask.getSteps().stream().filter(step -> step instanceof AbstractApplicationModelMigrationStep).collect(toList());
steps.addAll(policyUtilsMigrationSteps);
BasicStructureMigrationTask basicStructureTask = new BasicStructureMigrationTask();
List<MigrationStep> basicStructureSteps = basicStructureTask.getSteps().stream().filter(step -> step instanceof AbstractApplicationModelMigrationStep).collect(toList());
steps.addAll(basicStructureSteps);
}
use of com.mulesoft.tools.migration.library.gateway.TestConstants.POLICY_APPLICATION_MODEL_PATH in project mule-migration-assistant by mulesoft.
the class MuleElementsMigrationTestCase method setUp.
@Before
public void setUp() throws Exception {
ApplicationModel.ApplicationModelBuilder amb = new ApplicationModel.ApplicationModelBuilder();
amb.withProjectType(ProjectType.MULE_THREE_POLICY);
amb.withProjectBasePath(POLICY_APPLICATION_MODEL_PATH);
appModel = amb.build();
doc = getDocument(this.getClass().getClassLoader().getResource(configPath.toString()).toURI().getPath());
MuleElementsMigrationTask muleElementsMigrationTask = new MuleElementsMigrationTask();
muleElementsMigrationTask.setApplicationModel(appModel);
steps = muleElementsMigrationTask.getSteps().stream().filter(step -> step instanceof AbstractApplicationModelMigrationStep).collect(toList());
BasicStructureMigrationTask basicStructureTask = new BasicStructureMigrationTask();
List<MigrationStep> basicStructureSteps = basicStructureTask.getSteps().stream().filter(step -> step instanceof AbstractApplicationModelMigrationStep).collect(toList());
steps.addAll(basicStructureSteps);
}
use of com.mulesoft.tools.migration.library.gateway.TestConstants.POLICY_APPLICATION_MODEL_PATH in project mule-migration-assistant by mulesoft.
the class ThreatProtectionPolicyMigrationTestCase method setUp.
@Before
public void setUp() throws Exception {
ApplicationModel.ApplicationModelBuilder amb = new ApplicationModel.ApplicationModelBuilder();
amb.withProjectType(ProjectType.MULE_THREE_POLICY);
amb.withProjectBasePath(POLICY_APPLICATION_MODEL_PATH);
amb.withPom(pomPath);
appModel = amb.build();
doc = getDocument(this.getClass().getClassLoader().getResource(configPath.toString()).toURI().getPath());
ThreatProtectionMigrationTask task = new ThreatProtectionMigrationTask();
task.setApplicationModel(appModel);
steps = task.getSteps().stream().filter(step -> step instanceof AbstractApplicationModelMigrationStep).collect(toList());
MuleElementsMigrationTask muleElementsMigrationTask = new MuleElementsMigrationTask();
muleElementsMigrationTask.setApplicationModel(appModel);
List<MigrationStep> policyUtilsMigrationSteps = muleElementsMigrationTask.getSteps().stream().filter(step -> step instanceof AbstractApplicationModelMigrationStep).collect(toList());
steps.addAll(policyUtilsMigrationSteps);
BasicStructureMigrationTask basicStructureTask = new BasicStructureMigrationTask();
basicStructureTask.setApplicationModel(appModel);
List<MigrationStep> basicStructureSteps = basicStructureTask.getSteps().stream().filter(step -> step instanceof AbstractApplicationModelMigrationStep).collect(toList());
steps.addAll(basicStructureSteps);
}
Aggregations