Package org.omg.Messaging

Examples of org.omg.Messaging.RequestPriorityPolicy


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

        RequestPriorityPolicy p2 = (RequestPriorityPolicy)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.RequestPriorityPolicy

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.