From 7463024d466fbef80a0dfd05a30ec6130c09b40a Mon Sep 17 00:00:00 2001 From: GDLMadushanka Date: Tue, 3 Dec 2024 11:38:18 +0530 Subject: [PATCH] Fix test failures Fix test failures --- .../apache/synapse/util/synapse/expression/TestUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/core/src/test/java/org/apache/synapse/util/synapse/expression/TestUtils.java b/modules/core/src/test/java/org/apache/synapse/util/synapse/expression/TestUtils.java index 1e3a890d67..15b1bebd37 100644 --- a/modules/core/src/test/java/org/apache/synapse/util/synapse/expression/TestUtils.java +++ b/modules/core/src/test/java/org/apache/synapse/util/synapse/expression/TestUtils.java @@ -18,6 +18,7 @@ package org.apache.synapse.util.synapse.expression; +import com.google.gson.JsonParser; import org.antlr.v4.runtime.CharStream; import org.antlr.v4.runtime.CharStreams; import org.antlr.v4.runtime.CommonTokenStream; @@ -105,8 +106,8 @@ public class TestUtils { static { variableMap1 = new HashMap<>(); variableMap1.put("name", "John"); - variableMap1.put("age", "30"); - variableMap1.put("cars", "[\"Ford\",\"BMW\",\"Fiat\",\"Honda\",\"Lexus\",\"KIA\"]"); + variableMap1.put("age", 30); + variableMap1.put("cars", JsonParser.parseString("[\"Ford\",\"BMW\",\"Fiat\",\"Honda\",\"Lexus\",\"KIA\"]").getAsJsonArray()); variableMap1.put("index", "1"); variableMap1.put("num1", 10); variableMap1.put("num2", 5);