Package org.omg.Messaging

Examples of org.omg.Messaging.ReplyPriorityPolicy


    public void testReplyPriorityPolicy()
    {
        PriorityRange pr = new PriorityRange ((short)10, (short)20);
        Any value = create_any();
        PriorityRangeHelper.insert (value, pr);
        ReplyPriorityPolicy p = (ReplyPriorityPolicy)create_policy
        (
            REPLY_PRIORITY_POLICY_TYPE.value,
            value
        );
        assertEquals (REPLY_PRIORITY_POLICY_TYPE.value, p.policy_type());
        PriorityRange outPR = p.priority_range();
        assertEquals (pr.min, outPR.min);
        assertEquals (pr.max, outPR.max);

        ReplyPriorityPolicy p2 = (ReplyPriorityPolicy)p.copy();
        PriorityRange otherPR = p2.priority_range();
        assertEquals (outPR.min, otherPR.min);
        assertEquals (outPR.max, otherPR.max);

        p.destroy();
        p2.destroy();
    }
View Full Code Here

TOP

Related Classes of org.omg.Messaging.ReplyPriorityPolicy

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.