From ddf83a90dd59df7c58aedd3dd8710760ed66bb3b Mon Sep 17 00:00:00 2001 From: Lee Hinman Date: Wed, 17 Dec 2014 10:55:13 +0100 Subject: [PATCH] [TEST] Inject IndexSettings, not node Settings objects Guice was injecting the wrong Settings object --- .../java/org/elasticsearch/test/store/MockFSIndexStore.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/test/store/MockFSIndexStore.java b/src/test/java/org/elasticsearch/test/store/MockFSIndexStore.java index 662918e0aea..27adcc09f46 100644 --- a/src/test/java/org/elasticsearch/test/store/MockFSIndexStore.java +++ b/src/test/java/org/elasticsearch/test/store/MockFSIndexStore.java @@ -24,6 +24,7 @@ import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.NodeEnvironment; import org.elasticsearch.index.Index; import org.elasticsearch.index.IndexService; +import org.elasticsearch.index.settings.IndexSettings; import org.elasticsearch.index.store.DirectoryService; import org.elasticsearch.index.store.support.AbstractIndexStore; import org.elasticsearch.indices.store.IndicesStore; @@ -31,7 +32,8 @@ import org.elasticsearch.indices.store.IndicesStore; public class MockFSIndexStore extends AbstractIndexStore { @Inject - public MockFSIndexStore(Index index, Settings indexSettings, IndexService indexService, IndicesStore indicesStore, NodeEnvironment nodeEnv) { + public MockFSIndexStore(Index index, @IndexSettings Settings indexSettings, IndexService indexService, + IndicesStore indicesStore, NodeEnvironment nodeEnv) { super(index, indexSettings, indexService, indicesStore, nodeEnv); }