use of org.apache.geode.distributed.internal.membership.gms.messages.JoinRequestMessage in project geode by apache.
the class GMSJoinLeaveJUnitTest method testProcessJoinMessageRejectOldMemberVersion.
@Test
public void testProcessJoinMessageRejectOldMemberVersion() throws IOException {
initMocks();
gmsJoinLeave.processMessage(new JoinRequestMessage(mockOldMember, mockOldMember, null, -1, 0));
assertTrue("JoinRequest should not have been added to view request", gmsJoinLeave.getViewRequests().size() == 0);
verify(messenger).send(isA(JoinResponseMessage.class));
}
use of org.apache.geode.distributed.internal.membership.gms.messages.JoinRequestMessage in project geode by apache.
the class GMSJoinLeaveJUnitTest method processJoinMessage.
private void processJoinMessage(InternalDistributedMember coordinator, InternalDistributedMember newMember, int port) {
JoinRequestMessage reqMsg = new JoinRequestMessage(coordinator, newMember, null, port, 0);
gmsJoinLeave.processMessage(reqMsg);
}
Aggregations