Search in sources :

Example 1 with DistributedObjectNamespaceConstructor

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

the class DistributedObjectNamespaceConstructorTest method testConstructor.

@Test
public void testConstructor() {
    ObjectNamespace objectNamespace = getRingbufferNamespace("myRingbuffer");
    DistributedObjectNamespaceConstructor constructor = new DistributedObjectNamespaceConstructor(DistributedObjectNamespace.class);
    ObjectNamespace clonedObjectNamespace = (ObjectNamespace) constructor.createNew(objectNamespace);
    assertEquals(objectNamespace.getServiceName(), clonedObjectNamespace.getServiceName());
    assertEquals(objectNamespace.getObjectName(), clonedObjectNamespace.getObjectName());
}
Also used : DistributedObjectNamespaceConstructor(com.hazelcast.test.starter.constructor.DistributedObjectNamespaceConstructor) ObjectNamespace(com.hazelcast.internal.services.ObjectNamespace) DistributedObjectNamespace(com.hazelcast.internal.services.DistributedObjectNamespace) ParallelJVMTest(com.hazelcast.test.annotation.ParallelJVMTest) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

DistributedObjectNamespace (com.hazelcast.internal.services.DistributedObjectNamespace)1 ObjectNamespace (com.hazelcast.internal.services.ObjectNamespace)1 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)1 QuickTest (com.hazelcast.test.annotation.QuickTest)1 DistributedObjectNamespaceConstructor (com.hazelcast.test.starter.constructor.DistributedObjectNamespaceConstructor)1 Test (org.junit.Test)1