Search in sources :

Example 6 with StaticMemberNodeContext

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

the class Invocation_OnMemberLeftTest method whenMemberRestarts_withSameIdentity.

@Test
public void whenMemberRestarts_withSameIdentity() throws Exception {
    whenMemberRestarts(() -> {
        StaticMemberNodeContext nodeContext = new StaticMemberNodeContext(instanceFactory, remoteMember);
        remote = newHazelcastInstance(new Config(), remoteMember.toString(), nodeContext);
    });
}
Also used : StaticMemberNodeContext(com.hazelcast.instance.StaticMemberNodeContext) Config(com.hazelcast.config.Config) ParallelJVMTest(com.hazelcast.test.annotation.ParallelJVMTest) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

StaticMemberNodeContext (com.hazelcast.instance.StaticMemberNodeContext)6 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)6 Test (org.junit.Test)6 Config (com.hazelcast.config.Config)5 HazelcastInstance (com.hazelcast.core.HazelcastInstance)5 HazelcastInstanceFactory.newHazelcastInstance (com.hazelcast.instance.impl.HazelcastInstanceFactory.newHazelcastInstance)5 QuickTest (com.hazelcast.test.annotation.QuickTest)5 MemberImpl (com.hazelcast.cluster.impl.MemberImpl)4 TestHazelcastInstanceFactory.initOrCreateConfig (com.hazelcast.test.TestHazelcastInstanceFactory.initOrCreateConfig)4 ServiceConfig (com.hazelcast.config.ServiceConfig)2 OperationServiceImpl (com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl)2 TestHazelcastInstanceFactory (com.hazelcast.test.TestHazelcastInstanceFactory)2 Member (com.hazelcast.cluster.Member)1 CPMember (com.hazelcast.cp.CPMember)1 NodeContext (com.hazelcast.instance.impl.NodeContext)1 TargetNotMemberException (com.hazelcast.spi.exception.TargetNotMemberException)1 SlowTest (com.hazelcast.test.annotation.SlowTest)1