Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
Fix test failures
  • Loading branch information
GDLMadushanka committed Dec 3, 2024
1 parent 63fff63 commit 7463024
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7463024

Please sign in to comment.