Package org.omg.Messaging

Examples of org.omg.Messaging.ReplyStartTimePolicy


    public void testReplyStartTimePolicy()
    {
        UtcT time = new UtcT(12, 34, (short)56, (short)78);
        Any value = create_any();
        UtcTHelper.insert (value, time);
        ReplyStartTimePolicy p = (ReplyStartTimePolicy)create_policy
        (
            REPLY_START_TIME_POLICY_TYPE.value,
            value
        );
        assertEquals (REPLY_START_TIME_POLICY_TYPE.value, p.policy_type());
        UtcT outTime = p.start_time();
        assertEquals (time.time, outTime.time);
        assertEquals (time.inacchi, outTime.inacchi);
        assertEquals (time.inacclo, outTime.inacclo);
        assertEquals (time.tdf, outTime.tdf);

        ReplyStartTimePolicy p2 = (ReplyStartTimePolicy)p.copy();
        UtcT otherTime = p2.start_time();
        assertEquals (otherTime.time, outTime.time);
        assertEquals (otherTime.inacchi, outTime.inacchi);
        assertEquals (otherTime.inacclo, outTime.inacclo);
        assertEquals (otherTime.tdf, outTime.tdf);

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

TOP

Related Classes of org.omg.Messaging.ReplyStartTimePolicy

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.