[TEST] Inject IndexSettings, not node Settings objects
Guice was injecting the wrong Settings object
This commit is contained in:
parent
853879a121
commit
ddf83a90dd
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue