From 64eba389ef197bd3805754cd3b2461a5cf7b984f Mon Sep 17 00:00:00 2001 From: HeshanSudarshana Date: Thu, 18 May 2023 12:37:39 +0530 Subject: [PATCH] Refactor APIMGetAllSubscriptionThrottlingPolicies file --- .../publisher/APIMGetAllSubscriptionThrottlingPolicies.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/publisher/APIMGetAllSubscriptionThrottlingPolicies.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/publisher/APIMGetAllSubscriptionThrottlingPolicies.java index f5795bfb92..ab63d440bf 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/publisher/APIMGetAllSubscriptionThrottlingPolicies.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/publisher/APIMGetAllSubscriptionThrottlingPolicies.java @@ -20,6 +20,8 @@ package org.wso2.am.integration.tests.publisher; +import java.util.List; + import org.testng.annotations.BeforeClass; import org.testng.annotations.DataProvider; import org.testng.annotations.Factory; @@ -29,8 +31,6 @@ import org.wso2.am.integration.test.utils.base.APIMIntegrationBaseTest; import org.wso2.carbon.automation.engine.context.TestUserMode; -import java.util.List; - import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertNotNull; import static org.wso2.carbon.apimgt.api.model.policy.PolicyConstants.EVENT_COUNT_TYPE; @@ -127,7 +127,6 @@ public void testGetAllSubscriptionThrottlingPoliciesByQuotaType() throws Excepti "Invalid display name of the tier AsyncWHUnlimited"); assertEquals(tierAsyncWHUnlimited.getDescription(), "Allows unlimited events and unlimited active " + "subscriptions", "Invalid description of the tier AsyncWHUnlimited"); - } public SubscriptionPolicyDTO getSubscriptionPolicy(String policyName, List subscriptionPolicyDTOList) {