Browse Source

[TEST] Inject IndexSettings, not node Settings objects

Guice was injecting the wrong Settings object
Lee Hinman 11 years ago
parent
commit
ddf83a90dd
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/test/java/org/elasticsearch/test/store/MockFSIndexStore.java

+ 3 - 1
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);
     }