Search in sources :

Example 1 with TestRaftGroupId

use of com.hazelcast.cp.internal.raft.impl.testing.TestRaftGroupId in project hazelcast by hazelcast.

the class RaftStateTest method setup.

@Before
public void setup() {
    groupId = new TestRaftGroupId(name);
    localMember = newRaftMember(5000);
    members = new HashSet<RaftEndpoint>(asList(localMember, newRaftMember(5001), newRaftMember(5002), newRaftMember(5003), newRaftMember(5004)));
    state = newRaftState(groupId, localMember, members, 100);
}
Also used : TestRaftEndpoint(com.hazelcast.cp.internal.raft.impl.testing.TestRaftEndpoint) RaftEndpoint(com.hazelcast.cp.internal.raft.impl.RaftEndpoint) TestRaftGroupId(com.hazelcast.cp.internal.raft.impl.testing.TestRaftGroupId) Before(org.junit.Before)

Aggregations

RaftEndpoint (com.hazelcast.cp.internal.raft.impl.RaftEndpoint)1 TestRaftEndpoint (com.hazelcast.cp.internal.raft.impl.testing.TestRaftEndpoint)1 TestRaftGroupId (com.hazelcast.cp.internal.raft.impl.testing.TestRaftGroupId)1 Before (org.junit.Before)1