use of com.mulesoft.tools.migration.library.gateway.steps.policy.throttling.ThrottleTagMigrationStep 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.ThrottleTagMigrationStep in project mule-migration-assistant by mulesoft.
the class ThrottleTagMigrationStepTestCase method migrateThrottleTag.
@Test
public void migrateThrottleTag() {
final ThrottleTagMigrationStep step = new ThrottleTagMigrationStep();
Element element = getTestElement();
step.execute(element, mock(MigrationReport.class));
assertThat(element.getParent(), nullValue());
assertThat(element.getContentSize(), is(0));
}
Aggregations