use of com.yelp.nrtsearch.server.luceneserver.state.BackendGlobalState in project nrtsearch by Yelp.
the class GlobalStateTest method testCreateBackendGlobalState.
@Test
public void testCreateBackendGlobalState() throws IOException {
String configFile = String.join("\n", "stateConfig:", " backendType: LOCAL", "stateDir: " + folder.getRoot().getAbsolutePath());
LuceneServerConfiguration configuration = getConfig(configFile);
GlobalState globalState = GlobalState.createState(configuration);
assertTrue(globalState instanceof BackendGlobalState);
}
Aggregations