* participant.
*/
@Test
public void testRecreateParticipant() {
final String MODIFIER = "modifier";
final ClusterId clusterId = ClusterId.from("testCluster");
final ParticipantId participantId = ParticipantId.from("testParticipant");
// connect
boolean connected = _zkclient.waitUntilConnected(30000, TimeUnit.MILLISECONDS);
if (!connected) {
LOG.warn("Connection not established");
return;
}
BaseDataAccessor<ZNRecord> baseAccessor = new ZkBaseDataAccessor<ZNRecord>(_zkclient);
HelixDataAccessor helixAccessor = new ZKHelixDataAccessor(clusterId.stringify(), baseAccessor);
ClusterAccessor accessor = new ClusterAccessor(clusterId, helixAccessor);
// create the cluster
boolean clusterCreated = createCluster(clusterId, accessor, MODIFIER, 0);
Assert.assertTrue(clusterCreated);