Package org.omg.Messaging

Examples of org.omg.Messaging.QueueOrderPolicy


    @Test
    public void testQueueOrderPolicy()
    {
        Any value = create_any();
        value.insert_short((short)0xffff);
        QueueOrderPolicy p = (QueueOrderPolicy)create_policy
        (
            org.omg.Messaging.QUEUE_ORDER_POLICY_TYPE.value,
            value
        );
        assertEquals (QUEUE_ORDER_POLICY_TYPE.value, p.policy_type());
        assertEquals ((short)0xffff, p.allowed_orders());

        QueueOrderPolicy p2 = (QueueOrderPolicy)p.copy();
        assertEquals (p.allowed_orders(), p2.allowed_orders());
        p.destroy();
        p2.destroy();
    }
View Full Code Here

TOP

Related Classes of org.omg.Messaging.QueueOrderPolicy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.