use of com.hazelcast.test.starter.constructor.MemberImplConstructor in project hazelcast by hazelcast.
the class MemberImplConstructorTest method testConstructor.
@Test
public void testConstructor() {
HazelcastInstance hz = createHazelcastInstance();
MemberImpl memberImpl = (MemberImpl) hz.getCluster().getLocalMember();
MemberImplConstructor constructor = new MemberImplConstructor(MemberImpl.class);
MemberImpl clonedMemberImpl = (MemberImpl) constructor.createNew(memberImpl);
assertEquals(memberImpl.localMember(), clonedMemberImpl.localMember());
assertEquals(memberImpl.isLiteMember(), clonedMemberImpl.isLiteMember());
assertEquals(memberImpl.getAddress(), clonedMemberImpl.getAddress());
assertEquals(memberImpl.getSocketAddress(), clonedMemberImpl.getSocketAddress());
assertEquals(memberImpl.getUuid(), clonedMemberImpl.getUuid());
assertEquals(memberImpl.getAttributes(), clonedMemberImpl.getAttributes());
assertEquals(memberImpl.getVersion(), clonedMemberImpl.getVersion());
}
Aggregations