@Test public void isSearchPlatformFile_returnsFalseWhenDirectory() throws Exception { File dummyFile = tempFolder.newFolder(); assertFalse(platform.isSearchPlatformConfiguration(INDEX_NAME, dummyFile)); }
@Override public boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings) { return searchEngineStartupSettings.isFile() && searchEngineStartupSettings.getName().equals(SETTINGS_FILE); }
ExternalApacheSolr implements SearchPlatform { @Override public boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings) { return searchEngineStartupSettings.isFile() && searchEngineStartupSettings.getName().equals(SETTINGS_FILE); } }
ExternalApacheSolr implements SearchPlatform { @Override public boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings) { return searchEngineStartupSettings.isFile() && searchEngineStartupSettings.getName().equals(SETTINGS_FILE); }  }
ExternalApacheSolr implements SearchPlatform { @Override public boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings) { return searchEngineStartupSettings.isFile() && searchEngineStartupSettings.getName().equals(SETTINGS_FILE); }  @Override void beforeStart(Map<String, Object> configuration); @Override void start(); @Override void afterStart(); @Override void load(File dataToBeIndexed, File settingsFile, String collection, String version); @Override void beforeStop(); @Override QueryOrSearchResponse executeQuery(String collection, String version, String queryString, String[] fields, int maxRows); @Override String getName(); @Override boolean isRefreshRequired(); @Override boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings); @Override boolean isCorporaRequired(); @Override void close(); }
ExternalApacheSolr implements SearchPlatform { @Override public boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings) { return searchEngineStartupSettings.isFile() && searchEngineStartupSettings.getName().equals(SETTINGS_FILE); }  @Override void beforeStart(Map<String, Object> configuration); @Override void start(); @Override void afterStart(); @Override void load(File dataToBeIndexed, File settingsFile, String collection, String version); @Override void beforeStop(); @Override QueryOrSearchResponse executeQuery(String collection, String version, String queryString, String[] fields, int maxRows); @Override String getName(); @Override boolean isRefreshRequired(); @Override boolean isSearchPlatformConfiguration(String indexName, File searchEngineStartupSettings); @Override boolean isCorporaRequired(); @Override void close();  }