use of com.mulesoft.tools.migration.library.gateway.steps.policy.clientidenforcement.ClientIdEnforcementPomContributionMigrationStep in project mule-migration-assistant by mulesoft.
the class ClientIdEnforcementPomContributionMigrationStepTestCase method pomContributionTest.
@Test
public void pomContributionTest() {
PomModel pm = new PomModel();
ClientIdEnforcementPomContributionMigrationStep step = new ClientIdEnforcementPomContributionMigrationStep();
step.execute(pm, mock(MigrationReport.class));
assertThat(pm.getDependencies().size(), is(1));
Dependency clientIdEnforcementDependency = pm.getDependencies().get(0);
assertThat(clientIdEnforcementDependency.getGroupId(), is(COM_MULESOFT_ANYPOINT_GROUP_ID));
assertThat(clientIdEnforcementDependency.getArtifactId(), is(MULE_CLIENT_ID_ENFORCEMENT_EXTENSION_ARTIFACT_ID));
assertThat(clientIdEnforcementDependency.getVersion(), is(notNullValue()));
assertThat(clientIdEnforcementDependency.getClassifier(), is(MULE_PLUGIN_CLASSIFIER));
}
use of com.mulesoft.tools.migration.library.gateway.steps.policy.clientidenforcement.ClientIdEnforcementPomContributionMigrationStep in project mule-migration-assistant by mulesoft.
the class ClientIdEnforcementMigrationTask method getSteps.
@Override
public List<MigrationStep> getSteps() {
ValidateClientTagMigrationStep step = new ValidateClientTagMigrationStep();
step.setApplicationModel(getApplicationModel());
return Arrays.asList(new ClientIdEnforcementPomContributionMigrationStep(), step);
}
Aggregations