use of com.mulesoft.tools.migration.library.gateway.steps.policy.throttling.PolicyTagMigrationStep in project mule-migration-assistant by mulesoft.
the class PolicyTagMigrationStepTestCase method migratePolicyTagWithContent.
@Test
public void migratePolicyTagWithContent() {
final PolicyTagMigrationStep step = new PolicyTagMigrationStep();
Element element = getTestElement(true);
step.execute(element, mock(MigrationReport.class));
assertThat(element.getParent(), nullValue());
assertThat(element.getContentSize(), is(0));
}
use of com.mulesoft.tools.migration.library.gateway.steps.policy.throttling.PolicyTagMigrationStep in project mule-migration-assistant by mulesoft.
the class ThrottlingMigrationTask method getSteps.
@Override
public List<MigrationStep> getSteps() {
FixedTimeFrameAlgorithmMigrationStep fixedTimeFrameAlgorithmMigrationStep = new FixedTimeFrameAlgorithmMigrationStep();
fixedTimeFrameAlgorithmMigrationStep.setApplicationModel(getApplicationModel());
SlaBasedAlgorithmMigrationStep slaBasedAlgorithmMigrationStep = new SlaBasedAlgorithmMigrationStep();
slaBasedAlgorithmMigrationStep.setApplicationModel(getApplicationModel());
List<MigrationStep> steps = new ArrayList<>();
steps.add(fixedTimeFrameAlgorithmMigrationStep);
steps.add(slaBasedAlgorithmMigrationStep);
steps.add(new RateLimitTagMigrationStep());
steps.add(new DelayResponseTagMigrationStep());
steps.add(new DiscardResponseTagMigrationStep());
steps.add(new PolicyTagMigrationStep());
steps.add(new ThrottleTagMigrationStep());
return steps;
}
use of com.mulesoft.tools.migration.library.gateway.steps.policy.throttling.PolicyTagMigrationStep in project mule-migration-assistant by mulesoft.
the class PolicyTagMigrationStepTestCase method migrateRawPolicyTag.
@Test
public void migrateRawPolicyTag() {
final PolicyTagMigrationStep step = new PolicyTagMigrationStep();
Element element = getTestElement(false);
step.execute(element, mock(MigrationReport.class));
assertThat(element.getParent(), nullValue());
assertThat(element.getContentSize(), is(0));
}
Aggregations