Test: pass down parameters

Original commit: elastic/x-pack-elasticsearch@2210246872
This commit is contained in:
Martijn van Groningen 2015-02-26 11:05:16 +01:00
parent 4934267789
commit 42716a5adb

View File

@ -39,11 +39,11 @@ public abstract class AbstractAlertsSingleNodeTests extends ElasticsearchSingleN
}
protected IndexResponse index(String index, String type, String id) {
return index(index, type, id, Collections.EMPTY_MAP);
return index(index, type, id, Collections.<String, Object>emptyMap());
}
protected IndexResponse index(String index, String type, String id, Map<String, Object> doc) {
return client().prepareIndex("idx", "type", "1").setSource(doc).get();
return client().prepareIndex(index, type, id).setSource(doc).get();
}
protected ClusterHealthStatus ensureGreen(String... indices) {