Examples of DynAny


Examples of org.omg.DynamicAny.DynAny

    * Test accessing a value of some basic type in a DynAny object.
    */
   public void testAccessBasicValue_float () throws Exception
   {
      TypeCode tc     = orb.get_primitive_tc (org.omg.CORBA.TCKind.tk_float);
      DynAny   dynAny = createDynAnyFromTypeCode (tc);

      String msg = "Value inserted into DynAny object is not equal to value ";
      msg += "extracted from same DynAny object";

      dynAny.insert_float (700.0F);
      assertEquals (msg, 700.0F, dynAny.get_float(), 0.0);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.