Search in sources :

Example 1 with HazelcastJsonValueConstructor

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

the class HazelcastJsonValueConstructorTest method test.

@Test
public void test() {
    HazelcastJsonValue value = new HazelcastJsonValue("{\"a\": 11}");
    HazelcastJsonValueConstructor constructor = new HazelcastJsonValueConstructor(HazelcastJsonValue.class);
    HazelcastJsonValue cloned = (HazelcastJsonValue) constructor.createNew(value);
    assertEquals(cloned, value);
}
Also used : HazelcastJsonValueConstructor(com.hazelcast.test.starter.constructor.HazelcastJsonValueConstructor) HazelcastJsonValue(com.hazelcast.core.HazelcastJsonValue) ParallelJVMTest(com.hazelcast.test.annotation.ParallelJVMTest) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

HazelcastJsonValue (com.hazelcast.core.HazelcastJsonValue)1 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)1 QuickTest (com.hazelcast.test.annotation.QuickTest)1 HazelcastJsonValueConstructor (com.hazelcast.test.starter.constructor.HazelcastJsonValueConstructor)1 Test (org.junit.Test)1