use of com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpFilterTagMigrationStep 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.IpFilterTagMigrationStep in project mule-migration-assistant by mulesoft.
the class IpFilterTagMigrationStepTestCase method convertRawIpFilterTagWithNoProcessorChain.
@Test
public void convertRawIpFilterTagWithNoProcessorChain() {
final IpFilterTagMigrationStep step = new IpFilterTagMigrationStep();
Element element = getTestElement();
step.execute(element, reportMock);
assertFilterTag(element);
}
use of com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpFilterTagMigrationStep in project mule-migration-assistant by mulesoft.
the class IpFilterTagMigrationStepTestCase method convertIpFilterTagWithContentAndProcessorChain.
@Test
public void convertIpFilterTagWithContentAndProcessorChain() {
final IpFilterTagMigrationStep step = new IpFilterTagMigrationStep();
step.setApplicationModel(appModel);
Element element = getTestElement().addContent(new Element(GENERIC_TAG_NAME, IP_FILTER_GW_NAMESPACE));
addProcessorChainElement(element);
step.execute(element, reportMock);
assertFilterTag(element);
Element ipsElement = (Element) element.getContent(0);
assertThat(ipsElement.getContentSize(), is(0));
assertDwlScript();
assertProxyElement(element);
}
use of com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpFilterTagMigrationStep in project mule-migration-assistant by mulesoft.
the class IpFilterTagMigrationStepTestCase method convertIpFilterTagWithContentAndNoProcessorChain.
@Test
public void convertIpFilterTagWithContentAndNoProcessorChain() {
final IpFilterTagMigrationStep step = new IpFilterTagMigrationStep();
Element element = getTestElement().addContent(new Element(GENERIC_TAG_NAME, IP_FILTER_GW_NAMESPACE));
step.execute(element, reportMock);
assertFilterTag(element);
Element ipsElement = (Element) element.getContent(0);
assertThat(ipsElement.getContentSize(), is(0));
}
use of com.mulesoft.tools.migration.library.gateway.steps.policy.ipfilter.IpFilterTagMigrationStep in project mule-migration-assistant by mulesoft.
the class IpFilterTagMigrationStepTestCase method convertRawIpFilterTagWithProcessorChain.
@Test
public void convertRawIpFilterTagWithProcessorChain() {
final IpFilterTagMigrationStep step = new IpFilterTagMigrationStep();
step.setApplicationModel(appModel);
Element element = getTestElement();
addProcessorChainElement(element);
step.execute(element, reportMock);
assertFilterTag(element);
assertDwlScript();
assertProxyElement(element);
}
Aggregations