use of org.neo4j.causalclustering.core.consensus.vote.VoteRequestBuilder in project neo4j by neo4j.
the class RaftMessageEncodingDecodingTest method shouldSerializeVoteRequest.
@Test
public void shouldSerializeVoteRequest() throws Exception {
MemberId sender = new MemberId(UUID.randomUUID());
RaftMessages.Vote.Request request = new VoteRequestBuilder().candidate(sender).from(sender).lastLogIndex(2).lastLogTerm(1).term(3).build();
serializeReadBackAndVerifyMessage(request);
}
Aggregations