diff --git a/modules/core/src/main/java/org/apache/synapse/unittest/TestCasesMediator.java b/modules/core/src/main/java/org/apache/synapse/unittest/TestCasesMediator.java index 6c11fd3960..9373d317b3 100755 --- a/modules/core/src/main/java/org/apache/synapse/unittest/TestCasesMediator.java +++ b/modules/core/src/main/java/org/apache/synapse/unittest/TestCasesMediator.java @@ -142,9 +142,9 @@ static Map.Entry proxyServiceExecutor(TestCase currentTest String url; //check transport port whether http or https - if (proxyTransportMethod.equals(HTTP_KEY)) { + if (proxyTransportMethod.equalsIgnoreCase(HTTP_KEY)) { url = HTTP_LOCALHOST_URL + httpPassThruOperatingPort + PROXY_INVOKE_PREFIX_URL + key; - } else if (proxyTransportMethod.equals(HTTPS_KEY)) { + } else if (proxyTransportMethod.equalsIgnoreCase(HTTPS_KEY)) { url = HTTPS_LOCALHOST_URL + httpsPassThruOperatingPort + PROXY_INVOKE_PREFIX_URL + key; } else { return new AbstractMap.SimpleEntry<>("'" + proxyTransportMethod + "' transport is not supported", null);