Search in sources :

Example 1 with AppendEntriesResponseBuilder

use of org.neo4j.causalclustering.core.consensus.roles.AppendEntriesResponseBuilder in project neo4j by neo4j.

the class RaftMessageEncodingDecodingTest method shouldSerializeAppendResponse.

@Test
public void shouldSerializeAppendResponse() throws Exception {
    MemberId sender = new MemberId(UUID.randomUUID());
    RaftMessages.AppendEntries.Response request = new AppendEntriesResponseBuilder().from(sender).success().matchIndex(12).build();
    serializeReadBackAndVerifyMessage(request);
}
Also used : MemberId(org.neo4j.causalclustering.identity.MemberId) AppendEntriesResponseBuilder(org.neo4j.causalclustering.core.consensus.roles.AppendEntriesResponseBuilder) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 AppendEntriesResponseBuilder (org.neo4j.causalclustering.core.consensus.roles.AppendEntriesResponseBuilder)1 MemberId (org.neo4j.causalclustering.identity.MemberId)1