[TEST] Inject IndexSettings, not node Settings objects

Guice was injecting the wrong Settings object
This commit is contained in:
Lee Hinman 2014-12-17 10:55:13 +01:00
parent 853879a121
commit ddf83a90dd
1 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@ import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.env.NodeEnvironment; import org.elasticsearch.env.NodeEnvironment;
import org.elasticsearch.index.Index; import org.elasticsearch.index.Index;
import org.elasticsearch.index.IndexService; import org.elasticsearch.index.IndexService;
import org.elasticsearch.index.settings.IndexSettings;
import org.elasticsearch.index.store.DirectoryService; import org.elasticsearch.index.store.DirectoryService;
import org.elasticsearch.index.store.support.AbstractIndexStore; import org.elasticsearch.index.store.support.AbstractIndexStore;
import org.elasticsearch.indices.store.IndicesStore; import org.elasticsearch.indices.store.IndicesStore;
@ -31,7 +32,8 @@ import org.elasticsearch.indices.store.IndicesStore;
public class MockFSIndexStore extends AbstractIndexStore { public class MockFSIndexStore extends AbstractIndexStore {
@Inject @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); super(index, indexSettings, indexService, indicesStore, nodeEnv);
} }