Search in sources :

Example 1 with PolicyUtilsMigrationTask

use of com.mulesoft.tools.migration.library.gateway.tasks.PolicyUtilsMigrationTask in project mule-migration-assistant by mulesoft.

the class ThrottlingWithFileRenameMigrationTestCase method setUp.

@Before
public void setUp() throws Exception {
    ApplicationModel.ApplicationModelBuilder amb = new ApplicationModel.ApplicationModelBuilder();
    amb.withProjectType(ProjectType.MULE_THREE_POLICY);
    amb.withConfigurationFiles(Arrays.asList(POLICIES_FULL_PATH.resolve(configFilename + XML_EXTENSION)));
    amb.withProjectBasePath(APPLICATION_MODEL_PATH);
    amb.withPom(pomPath);
    appModel = amb.build();
    doc = getDocument(this.getClass().getClassLoader().getResource(configPath.toString()).toURI().getPath());
    ThrottlingMigrationTask throttlingMigrationTask = new ThrottlingMigrationTask();
    throttlingMigrationTask.setApplicationModel(appModel);
    steps = throttlingMigrationTask.getSteps();
    BasicStructureMigrationTask basicStructureTask = new BasicStructureMigrationTask();
    basicStructureTask.setApplicationModel(appModel);
    steps.addAll(basicStructureTask.getSteps());
    steps.addAll(new PolicyUtilsMigrationTask().getSteps());
}
Also used : PolicyUtilsMigrationTask(com.mulesoft.tools.migration.library.gateway.tasks.PolicyUtilsMigrationTask) ApplicationModel(com.mulesoft.tools.migration.project.model.ApplicationModel) ThrottlingMigrationTask(com.mulesoft.tools.migration.library.gateway.tasks.ThrottlingMigrationTask) BasicStructureMigrationTask(com.mulesoft.tools.migration.library.gateway.tasks.BasicStructureMigrationTask) Before(org.junit.Before)

Example 2 with PolicyUtilsMigrationTask

use of com.mulesoft.tools.migration.library.gateway.tasks.PolicyUtilsMigrationTask in project mule-migration-assistant by mulesoft.

the class MigrationTaskLocator method getGatewayMigrationTasks.

protected List<AbstractMigrationTask> getGatewayMigrationTasks() {
    List<AbstractMigrationTask> gatewayMigrationTasks = new ArrayList<>();
    gatewayMigrationTasks.add(new ProxyMigrationTask());
    gatewayMigrationTasks.add(new RamlProxyMigrationTask());
    gatewayMigrationTasks.add(new IpFilterMigrationTask());
    gatewayMigrationTasks.add(new ThreatProtectionMigrationTask());
    gatewayMigrationTasks.add(new ThrottlingMigrationTask());
    gatewayMigrationTasks.add(new ClientIdEnforcementMigrationTask());
    gatewayMigrationTasks.add(new FederationMigrationTask());
    gatewayMigrationTasks.add(new HttpMigrationTask());
    gatewayMigrationTasks.add(new MuleElementsMigrationTask());
    gatewayMigrationTasks.add(new PolicyUtilsMigrationTask());
    gatewayMigrationTasks.add(new BasicStructureMigrationTask());
    return gatewayMigrationTasks;
}
Also used : FederationMigrationTask(com.mulesoft.tools.migration.library.gateway.tasks.FederationMigrationTask) PolicyUtilsMigrationTask(com.mulesoft.tools.migration.library.gateway.tasks.PolicyUtilsMigrationTask) AbstractMigrationTask(com.mulesoft.tools.migration.task.AbstractMigrationTask) IpFilterMigrationTask(com.mulesoft.tools.migration.library.gateway.tasks.IpFilterMigrationTask) Lists.newArrayList(com.google.common.collect.Lists.newArrayList) ArrayList(java.util.ArrayList) ClientIdEnforcementMigrationTask(com.mulesoft.tools.migration.library.gateway.tasks.ClientIdEnforcementMigrationTask) RamlProxyMigrationTask(com.mulesoft.tools.migration.library.gateway.tasks.RamlProxyMigrationTask) BasicStructureMigrationTask(com.mulesoft.tools.migration.library.gateway.tasks.BasicStructureMigrationTask) RamlProxyMigrationTask(com.mulesoft.tools.migration.library.gateway.tasks.RamlProxyMigrationTask) ProxyMigrationTask(com.mulesoft.tools.migration.library.gateway.tasks.ProxyMigrationTask) ThreatProtectionMigrationTask(com.mulesoft.tools.migration.library.gateway.tasks.ThreatProtectionMigrationTask) ThrottlingMigrationTask(com.mulesoft.tools.migration.library.gateway.tasks.ThrottlingMigrationTask) HttpMigrationTask(com.mulesoft.tools.migration.library.gateway.tasks.HttpMigrationTask) MuleElementsMigrationTask(com.mulesoft.tools.migration.library.gateway.tasks.MuleElementsMigrationTask)

Aggregations

BasicStructureMigrationTask (com.mulesoft.tools.migration.library.gateway.tasks.BasicStructureMigrationTask)2 PolicyUtilsMigrationTask (com.mulesoft.tools.migration.library.gateway.tasks.PolicyUtilsMigrationTask)2 ThrottlingMigrationTask (com.mulesoft.tools.migration.library.gateway.tasks.ThrottlingMigrationTask)2 Lists.newArrayList (com.google.common.collect.Lists.newArrayList)1 ClientIdEnforcementMigrationTask (com.mulesoft.tools.migration.library.gateway.tasks.ClientIdEnforcementMigrationTask)1 FederationMigrationTask (com.mulesoft.tools.migration.library.gateway.tasks.FederationMigrationTask)1 HttpMigrationTask (com.mulesoft.tools.migration.library.gateway.tasks.HttpMigrationTask)1 IpFilterMigrationTask (com.mulesoft.tools.migration.library.gateway.tasks.IpFilterMigrationTask)1 MuleElementsMigrationTask (com.mulesoft.tools.migration.library.gateway.tasks.MuleElementsMigrationTask)1 ProxyMigrationTask (com.mulesoft.tools.migration.library.gateway.tasks.ProxyMigrationTask)1 RamlProxyMigrationTask (com.mulesoft.tools.migration.library.gateway.tasks.RamlProxyMigrationTask)1 ThreatProtectionMigrationTask (com.mulesoft.tools.migration.library.gateway.tasks.ThreatProtectionMigrationTask)1 ApplicationModel (com.mulesoft.tools.migration.project.model.ApplicationModel)1 AbstractMigrationTask (com.mulesoft.tools.migration.task.AbstractMigrationTask)1 ArrayList (java.util.ArrayList)1 Before (org.junit.Before)1