use of com.hazelcast.internal.cluster.impl.JoinRequest in project hazelcast by hazelcast.
the class DefaultNodeExtensionTest method test_joinRequestFails_whenOtherMajorVersion.
@Test
public void test_joinRequestFails_whenOtherMajorVersion() throws UnknownHostException {
MemberVersion otherPatchVersion = MemberVersion.of(node.getVersion().getMajor() + 1, node.getVersion().getMinor(), node.getVersion().getPatch());
JoinRequest joinRequest = new JoinRequest(Packet.VERSION, BUILD_INFO.getBuildNumber(), otherPatchVersion, new Address("127.0.0.1", 9999), UuidUtil.newUnsecureUuidString(), false, null, null, null, null);
expected.expect(VersionMismatchException.class);
nodeExtension.validateJoinRequest(joinRequest);
}
Aggregations