Search in sources :

Example 1 with IpTagMigrationStep

use of com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpTagMigrationStep 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 IpTagMigrationStep

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

the class IpTagMigrationStepTestCase method convertIpTagWithContent.

@Test
public void convertIpTagWithContent() {
    IpTagMigrationStep step = new IpTagMigrationStep();
    Element element = getTestElement().addContent(new Text(VALUE_ATTR_VALUE));
    step.execute(element, reportMock);
    assertIpTag(element);
    assertThat(element.getAttributeValue(VALUE_ATTR_NAME), is(VALUE_ATTR_VALUE));
}
Also used : Element(org.jdom2.Element) Text(org.jdom2.Text) IpTagMigrationStep(com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpTagMigrationStep) Test(org.junit.Test)

Example 3 with IpTagMigrationStep

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

the class IpTagMigrationStepTestCase method convertRawIpTag.

@Test
public void convertRawIpTag() {
    IpTagMigrationStep step = new IpTagMigrationStep();
    Element element = getTestElement();
    step.execute(element, reportMock);
    assertIpTag(element);
}
Also used : Element(org.jdom2.Element) IpTagMigrationStep(com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpTagMigrationStep) Test(org.junit.Test)

Aggregations

IpTagMigrationStep (com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpTagMigrationStep)3 Element (org.jdom2.Element)2 Test (org.junit.Test)2 BlacklistTagMigrationStep (com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.BlacklistTagMigrationStep)1 IpFilterPomContributionMigrationStep (com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpFilterPomContributionMigrationStep)1 IpFilterTagMigrationStep (com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpFilterTagMigrationStep)1 WhitelistTagMigrationStep (com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.WhitelistTagMigrationStep)1 Text (org.jdom2.Text)1