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());
}
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));
}
Aggregations