[TEST] Remove redundant call to setTemplateType()
This commit is contained in:
parent
4111d932f6
commit
bf1e1de3f1
|
@ -264,7 +264,7 @@ public class TemplateQueryTest extends ElasticsearchIntegrationTest {
|
||||||
templateParams.put("fieldParam", "foo");
|
templateParams.put("fieldParam", "foo");
|
||||||
|
|
||||||
SearchResponse searchResponse = client().prepareSearch("test").setTypes("type").
|
SearchResponse searchResponse = client().prepareSearch("test").setTypes("type").
|
||||||
setTemplateName("testTemplate").setTemplateType(ScriptService.ScriptType.INDEXED).setTemplateType(ScriptService.ScriptType.INDEXED).setTemplateParams(templateParams).get();
|
setTemplateName("testTemplate").setTemplateType(ScriptService.ScriptType.INDEXED).setTemplateParams(templateParams).get();
|
||||||
assertHitCount(searchResponse, 4);
|
assertHitCount(searchResponse, 4);
|
||||||
|
|
||||||
DeleteIndexedScriptResponse deleteResponse = client().prepareDeleteIndexedScript("mustache","testTemplate").get();
|
DeleteIndexedScriptResponse deleteResponse = client().prepareDeleteIndexedScript("mustache","testTemplate").get();
|
||||||
|
|
Loading…
Reference in New Issue