Package org.omg.Messaging

Examples of org.omg.Messaging.RebindPolicy


    @Test
    public void testRebindPolicy()
    {
        Any value = create_any();
        value.insert_short((short)0xffff);
        RebindPolicy p = (RebindPolicy)create_policy
        (
            org.omg.Messaging.REBIND_POLICY_TYPE.value,
            value
        );
        assertEquals (REBIND_POLICY_TYPE.value, p.policy_type());
        assertEquals ((short)0xffff, p.rebind_mode());

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

TOP

Related Classes of org.omg.Messaging.RebindPolicy

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.