Search in sources :

Example 1 with ClientIdEnforcementPomContributionMigrationStep

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));
}
Also used : ClientIdEnforcementPomContributionMigrationStep(com.mulesoft.tools.migration.library.gateway.steps.policy.clientidenforcement.ClientIdEnforcementPomContributionMigrationStep) PomModel(com.mulesoft.tools.migration.project.model.pom.PomModel) MigrationReport(com.mulesoft.tools.migration.step.category.MigrationReport) Dependency(com.mulesoft.tools.migration.project.model.pom.Dependency) Test(org.junit.Test)

Example 2 with ClientIdEnforcementPomContributionMigrationStep

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);
}
Also used : ValidateClientTagMigrationStep(com.mulesoft.tools.migration.library.gateway.steps.policy.clientidenforcement.ValidateClientTagMigrationStep) ClientIdEnforcementPomContributionMigrationStep(com.mulesoft.tools.migration.library.gateway.steps.policy.clientidenforcement.ClientIdEnforcementPomContributionMigrationStep)

Aggregations

ClientIdEnforcementPomContributionMigrationStep (com.mulesoft.tools.migration.library.gateway.steps.policy.clientidenforcement.ClientIdEnforcementPomContributionMigrationStep)2 ValidateClientTagMigrationStep (com.mulesoft.tools.migration.library.gateway.steps.policy.clientidenforcement.ValidateClientTagMigrationStep)1 Dependency (com.mulesoft.tools.migration.project.model.pom.Dependency)1 PomModel (com.mulesoft.tools.migration.project.model.pom.PomModel)1 MigrationReport (com.mulesoft.tools.migration.step.category.MigrationReport)1 Test (org.junit.Test)1