Search in sources :

Example 1 with SystemStoreClient

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.
    }
}
Also used : SystemStoreClientFactory(voldemort.client.SystemStoreClientFactory) SystemStoreClient(voldemort.client.SystemStoreClient) ClientConfig(voldemort.client.ClientConfig) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ClientConfig (voldemort.client.ClientConfig)1 SystemStoreClient (voldemort.client.SystemStoreClient)1 SystemStoreClientFactory (voldemort.client.SystemStoreClientFactory)1