summaryrefslogtreecommitdiff
path: root/modules/lang-mustache/src/test/java/org/elasticsearch/script/mustache/MustacheTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lang-mustache/src/test/java/org/elasticsearch/script/mustache/MustacheTests.java')
-rw-r--r--modules/lang-mustache/src/test/java/org/elasticsearch/script/mustache/MustacheTests.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/lang-mustache/src/test/java/org/elasticsearch/script/mustache/MustacheTests.java b/modules/lang-mustache/src/test/java/org/elasticsearch/script/mustache/MustacheTests.java
index ba19febfd2..2b11df1939 100644
--- a/modules/lang-mustache/src/test/java/org/elasticsearch/script/mustache/MustacheTests.java
+++ b/modules/lang-mustache/src/test/java/org/elasticsearch/script/mustache/MustacheTests.java
@@ -279,7 +279,8 @@ public class MustacheTests extends ESTestCase {
.endArray()
.endObject();
- Map<String, Object> ctx = Collections.singletonMap("ctx", XContentHelper.convertToMap(builder.bytes(), false).v2());
+ Map<String, Object> ctx =
+ Collections.singletonMap("ctx", XContentHelper.convertToMap(builder.bytes(), false, builder.contentType()).v2());
assertScript("{{#ctx.bulks}}{{#toJson}}.{{/toJson}}{{/ctx.bulks}}", ctx,
equalTo("{\"index\":\"index-1\",\"id\":1,\"type\":\"type-1\"}{\"index\":\"index-2\",\"id\":2,\"type\":\"type-2\"}"));
@@ -320,7 +321,8 @@ public class MustacheTests extends ESTestCase {
.endArray()
.endObject();
- Map<String, Object> ctx = Collections.singletonMap("ctx", XContentHelper.convertToMap(builder.bytes(), false).v2());
+ Map<String, Object> ctx =
+ Collections.singletonMap("ctx", XContentHelper.convertToMap(builder.bytes(), false, builder.contentType()).v2());
assertScript("{{#join}}ctx.people.0.emails{{/join}}", ctx,
equalTo("john@smith.com,john.smith@email.com,jsmith@email.com"));