use of com.mulesoft.tools.migration.library.gateway.steps.policy.throttling.FixedTimeFrameAlgorithmMigrationStep in project mule-migration-assistant by mulesoft.
the class FixedTimeAlgorithmMigrationStepTestCase method multipleRateLimitElementsSpikeControl.
@Test
public void multipleRateLimitElementsSpikeControl() {
FixedTimeFrameAlgorithmMigrationStep step = new FixedTimeFrameAlgorithmMigrationStep();
step.setApplicationModel(appModel);
Element element = createPolicy(2, FIXED_TIME_FRAME_ALGORITHM_TAG_NAME, false);
step.execute(element, reportMock);
assertConfigElement(element, 2, false);
assertOperationElements(element, 2, false);
assertNamespaces(element);
verify(reportMock).report("throttling.throttlingMultipleTiersNotSupported", element, element);
assertPolicyName(element);
}
Aggregations