use of voldemort.client.SystemStoreClient in project voldemort by voldemort.
the class SystemStoreTest method testIllegalSystemStore.
@Test
public void testIllegalSystemStore() {
try {
ClientConfig clientConfig = new ClientConfig();
clientConfig.setBootstrapUrls(bootStrapUrls).setClientZoneId(this.clientZoneId);
SystemStoreClientFactory<String, String> systemStoreFactory = new SystemStoreClientFactory<String, String>(clientConfig);
SystemStoreClient sysVersionStore = systemStoreFactory.createSystemStore("test-store", this.clusterXml, null);
fail("Should not execute this. We can only connect to system store with a 'voldsys$' prefix.");
} catch (Exception e) {
// This is fine.
}
}
Aggregations