Search in sources :

Example 1 with IpFilterPomContributionMigrationStep

use of com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpFilterPomContributionMigrationStep in project mule-migration-assistant by mulesoft.

the class IpFilterMigrationTask method getSteps.

@Override
public List<MigrationStep> getSteps() {
    IpFilterTagMigrationStep step = new IpFilterTagMigrationStep();
    step.setApplicationModel(getApplicationModel());
    return Arrays.asList(new IpFilterPomContributionMigrationStep(), step, new BlacklistTagMigrationStep(), new WhitelistTagMigrationStep(), new IpTagMigrationStep());
}
Also used : IpFilterTagMigrationStep(com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpFilterTagMigrationStep) IpFilterPomContributionMigrationStep(com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpFilterPomContributionMigrationStep) BlacklistTagMigrationStep(com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.BlacklistTagMigrationStep) WhitelistTagMigrationStep(com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.WhitelistTagMigrationStep) IpTagMigrationStep(com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpTagMigrationStep)

Example 2 with IpFilterPomContributionMigrationStep

use of com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpFilterPomContributionMigrationStep in project mule-migration-assistant by mulesoft.

the class IpFilterPomContributionMigrationStepTestCase method pomContributionTest.

@Test
public void pomContributionTest() {
    PomModel pm = new PomModel();
    IpFilterPomContributionMigrationStep step = new IpFilterPomContributionMigrationStep();
    step.execute(pm, reportMock);
    assertThat(pm.getDependencies().size(), is(1));
    Dependency ipFilterExtension = pm.getDependencies().get(0);
    assertThat(ipFilterExtension.getGroupId(), is(COM_MULESOFT_ANYPOINT_GROUP_ID));
    assertThat(ipFilterExtension.getArtifactId(), is(MULE_IP_FILTER_EXTENSION_ARTIFACT_ID));
    assertThat(ipFilterExtension.getVersion(), is(notNullValue()));
    assertThat(ipFilterExtension.getClassifier(), is(MULE_PLUGIN_CLASSIFIER));
}
Also used : IpFilterPomContributionMigrationStep(com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpFilterPomContributionMigrationStep) PomModel(com.mulesoft.tools.migration.project.model.pom.PomModel) Dependency(com.mulesoft.tools.migration.project.model.pom.Dependency) Test(org.junit.Test)

Aggregations

IpFilterPomContributionMigrationStep (com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpFilterPomContributionMigrationStep)2 BlacklistTagMigrationStep (com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.BlacklistTagMigrationStep)1 IpFilterTagMigrationStep (com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpFilterTagMigrationStep)1 IpTagMigrationStep (com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpTagMigrationStep)1 WhitelistTagMigrationStep (com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.WhitelistTagMigrationStep)1 Dependency (com.mulesoft.tools.migration.project.model.pom.Dependency)1 PomModel (com.mulesoft.tools.migration.project.model.pom.PomModel)1 Test (org.junit.Test)1