From a9c77e8c5f9f8856782d3e33b68262460f9bb9f8 Mon Sep 17 00:00:00 2001 From: Sam Pullara Date: Wed, 26 Jun 2024 16:04:24 -0700 Subject: [PATCH] the lambda tests depend on this ordering --- compiler/src/test/java/com/github/mustachejava/SpecTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/test/java/com/github/mustachejava/SpecTest.java b/compiler/src/test/java/com/github/mustachejava/SpecTest.java index 322cff16..11171213 100644 --- a/compiler/src/test/java/com/github/mustachejava/SpecTest.java +++ b/compiler/src/test/java/com/github/mustachejava/SpecTest.java @@ -102,7 +102,7 @@ public String apply(String input) { StringWriter writer = new StringWriter(); String json = data.toString(); if (json.startsWith("{")) { - compile.execute(writer, new Object[]{functionMap.get(file), new ObjectMapper().readValue(json, Map.class)}); + compile.execute(writer, new Object[]{new ObjectMapper().readValue(json, Map.class), functionMap.get(file)}); } else if (json.startsWith("[")) { compile.execute(writer, new Object[]{functionMap.get(file), new ObjectMapper().readValue(json, List.class)}); } else {