Search in sources :

Example 1 with SimpleMemberImpl

use of com.hazelcast.instance.SimpleMemberImpl in project hazelcast by hazelcast.

the class SerializationTest method testMemberLeftException_usingSimpleMember.

@Test
public void testMemberLeftException_usingSimpleMember() throws Exception {
    String uuid = UuidUtil.newUnsecureUuidString();
    String host = "127.0.0.1";
    int port = 5000;
    Member member = new SimpleMemberImpl(MemberVersion.of("3.8.0"), uuid, new InetSocketAddress(host, port));
    testMemberLeftException(uuid, host, port, member);
}
Also used : InetSocketAddress(java.net.InetSocketAddress) Member(com.hazelcast.core.Member) SimpleMemberImpl(com.hazelcast.instance.SimpleMemberImpl) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Example 2 with SimpleMemberImpl

use of com.hazelcast.instance.SimpleMemberImpl in project hazelcast by hazelcast.

the class SerializationTest method testMemberLeftException_withLiteSimpleMemberImpl.

@Test
public void testMemberLeftException_withLiteSimpleMemberImpl() throws Exception {
    String uuid = UuidUtil.newUnsecureUuidString();
    String host = "127.0.0.1";
    int port = 5000;
    Member member = new SimpleMemberImpl(MemberVersion.of("3.8.0"), uuid, new InetSocketAddress(host, port), true);
    testMemberLeftException(uuid, host, port, member);
}
Also used : InetSocketAddress(java.net.InetSocketAddress) Member(com.hazelcast.core.Member) SimpleMemberImpl(com.hazelcast.instance.SimpleMemberImpl) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

Member (com.hazelcast.core.Member)2 SimpleMemberImpl (com.hazelcast.instance.SimpleMemberImpl)2 QuickTest (com.hazelcast.test.annotation.QuickTest)2 InetSocketAddress (java.net.InetSocketAddress)2 Test (org.junit.Test)2