From 3758c3c63c71cbefb80d37c6b927bf7ff86882ba Mon Sep 17 00:00:00 2001 From: msm1992 Date: Thu, 27 Jun 2024 09:50:15 +0530 Subject: [PATCH] Fix tests --- .../apimgt/gateway/handlers/throttling/ThrottleHandlerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/apimgt/org.wso2.carbon.apimgt.gateway/src/test/java/org/wso2/carbon/apimgt/gateway/handlers/throttling/ThrottleHandlerTest.java b/components/apimgt/org.wso2.carbon.apimgt.gateway/src/test/java/org/wso2/carbon/apimgt/gateway/handlers/throttling/ThrottleHandlerTest.java index 69726a786e0f..475e9f4acb7b 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.gateway/src/test/java/org/wso2/carbon/apimgt/gateway/handlers/throttling/ThrottleHandlerTest.java +++ b/components/apimgt/org.wso2.carbon.apimgt.gateway/src/test/java/org/wso2/carbon/apimgt/gateway/handlers/throttling/ThrottleHandlerTest.java @@ -592,7 +592,7 @@ public void testMsgThrottleOutWithUserBlockingConditions() { @Test public void testHandleRequestForGraphQLSubscriptions() { - ThrottleHandler throttleHandler = new ThrottlingHandlerWrapper(timer, new ThrottleDataHolder(), + ThrottleHandler throttleHandler = new ThrottlingHandlerWrapper(timer, ThrottleDataHolder.getInstance(), throttleEvaluator, accessInformation); Axis2MessageContext messageContext = Mockito.mock(Axis2MessageContext.class); org.apache.axis2.context.MessageContext axis2MessageContext =