diff --git a/elasticsearch/x-pack/watcher/src/test/java/org/elasticsearch/script/MockMustacheScriptEngine.java b/elasticsearch/x-pack/watcher/src/test/java/org/elasticsearch/script/MockMustacheScriptEngine.java index 30f4105ba89..0fe5e1b6fa6 100644 --- a/elasticsearch/x-pack/watcher/src/test/java/org/elasticsearch/script/MockMustacheScriptEngine.java +++ b/elasticsearch/x-pack/watcher/src/test/java/org/elasticsearch/script/MockMustacheScriptEngine.java @@ -8,7 +8,9 @@ package org.elasticsearch.script; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.xpack.common.text.DefaultTextTemplateEngine; +import java.util.Collections; import java.util.Map; +import java.util.function.Function; /** * A mock script engine that registers itself under the 'mustache' name so that @@ -19,11 +21,16 @@ public class MockMustacheScriptEngine extends MockScriptEngine { public static final String NAME = "mustache"; - public static class TestPlugin extends MockScriptEngine.TestPlugin { + public static class TestPlugin extends MockScriptPlugin { @Override public ScriptEngineService getScriptEngineService(Settings settings) { return new MockMustacheScriptEngine(); } + + @Override + protected Map, Object>> pluginScripts() { + return Collections.emptyMap(); + } } @Override