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());
}
Aggregations