Package org.omg.Messaging

Examples of org.omg.Messaging.MaxHopsPolicy


    @Test
    public void testMaxHopsPolicy()
    {
        Any value = create_any();
        value.insert_ushort((short)17);
        MaxHopsPolicy p = (MaxHopsPolicy)create_policy
        (
            org.omg.Messaging.MAX_HOPS_POLICY_TYPE.value,
            value
        );
        assertEquals (MAX_HOPS_POLICY_TYPE.value, p.policy_type());
        assertEquals (17, p.max_hops());

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

TOP

Related Classes of org.omg.Messaging.MaxHopsPolicy

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.