@Test public void isSearchPlatformFile_returnsFalseWhenFileIsNotESConfig() throws Exception { File dummyFile = tempFolder.newFile(); assertFalse(platform.isSearchPlatformConfiguration(INDEX_NAME, dummyFile)); }
@Override public boolean isSearchPlatformConfiguration(String indexName, File file) { return file.isFile() && file.getName().equals("index-shape.json"); }
Elasticsearch implements SearchPlatform { @Override public boolean isSearchPlatformConfiguration(String indexName, File file) { return file.isFile() && file.getName().equals("index-shape.json"); } }
Elasticsearch implements SearchPlatform { @Override public boolean isSearchPlatformConfiguration(String indexName, File file) { return file.isFile() && file.getName().equals("index-shape.json"); }  }
Elasticsearch implements SearchPlatform { @Override public boolean isSearchPlatformConfiguration(String indexName, File file) { return file.isFile() && file.getName().equals("index-shape.json"); }  @Override void beforeStart(final Map<String, Object> configuration); @Override void load(final File dataToBeIndexed, File indexShapeFile, String collection, String version); @Override String getName(); @Override void start(); @Override void afterStart(); @Override void beforeStop(); @Override void close(); @Override QueryOrSearchResponse executeQuery(final String collection, String version, final String query, final String[] fields, final int maxRows); @Override boolean isRefreshRequired(); @Override boolean isSearchPlatformConfiguration(String indexName, File file); @Override boolean isCorporaRequired(); }
Elasticsearch implements SearchPlatform { @Override public boolean isSearchPlatformConfiguration(String indexName, File file) { return file.isFile() && file.getName().equals("index-shape.json"); }  @Override void beforeStart(final Map<String, Object> configuration); @Override void load(final File dataToBeIndexed, File indexShapeFile, String collection, String version); @Override String getName(); @Override void start(); @Override void afterStart(); @Override void beforeStop(); @Override void close(); @Override QueryOrSearchResponse executeQuery(final String collection, String version, final String query, final String[] fields, final int maxRows); @Override boolean isRefreshRequired(); @Override boolean isSearchPlatformConfiguration(String indexName, File file); @Override boolean isCorporaRequired();  }