Search in sources :

Example 1 with MockHelixAdmin

use of org.apache.helix.mock.MockHelixAdmin in project helix by apache.

the class BaseStageTest method setup.

public void setup() {
    _clusterName = "testCluster-" + UUID.randomUUID().toString();
    manager = new MockManager(_clusterName);
    accessor = manager.getHelixDataAccessor();
    ClusterConfig clusterConfig = new ClusterConfig(_clusterName);
    setClusterConfig(clusterConfig);
    admin = new MockHelixAdmin(manager);
    event = new ClusterEvent(ClusterEventType.Unknown);
    admin.addCluster(_clusterName);
}
Also used : MockHelixAdmin(org.apache.helix.mock.MockHelixAdmin) MockManager(org.apache.helix.mock.MockManager) ClusterConfig(org.apache.helix.model.ClusterConfig)

Aggregations

MockHelixAdmin (org.apache.helix.mock.MockHelixAdmin)1 MockManager (org.apache.helix.mock.MockManager)1 ClusterConfig (org.apache.helix.model.ClusterConfig)1