use of com.yelp.nrtsearch.server.luceneserver.state.backend.LocalStateBackend in project nrtsearch by Yelp.
the class BackendGlobalStateTest method testUseLocalBackend.
@Test
public void testUseLocalBackend() throws IOException {
String configFile = String.join("\n", "stateConfig:", " backendType: LOCAL", "stateDir: " + folder.newFolder("state").getAbsolutePath(), "indexDir: " + folder.newFolder("index").getAbsolutePath());
LuceneServerConfiguration config = new LuceneServerConfiguration(new ByteArrayInputStream(configFile.getBytes()));
BackendGlobalState backendGlobalState = new BackendGlobalState(config, null);
assertTrue(backendGlobalState.getStateBackend() instanceof LocalStateBackend);
}
Aggregations