Search in sources :

Example 1 with RaftGroupIdConstructor

use of com.hazelcast.test.starter.constructor.RaftGroupIdConstructor in project hazelcast by hazelcast.

the class RaftGroupIdConstructorTest method test.

@Test
public void test() {
    RaftGroupId original = new RaftGroupId(HazelcastTestSupport.randomString(), -13, 992);
    RaftGroupIdConstructor constructor = new RaftGroupIdConstructor(RaftGroupId.class);
    RaftGroupId clone = (RaftGroupId) constructor.createNew(original);
    assertEquals(original, clone);
}
Also used : RaftGroupId(com.hazelcast.cp.internal.RaftGroupId) RaftGroupIdConstructor(com.hazelcast.test.starter.constructor.RaftGroupIdConstructor) ParallelJVMTest(com.hazelcast.test.annotation.ParallelJVMTest) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

RaftGroupId (com.hazelcast.cp.internal.RaftGroupId)1 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)1 QuickTest (com.hazelcast.test.annotation.QuickTest)1 RaftGroupIdConstructor (com.hazelcast.test.starter.constructor.RaftGroupIdConstructor)1 Test (org.junit.Test)1