Examples of insert_ushort()


Examples of org.omg.CORBA.Any.insert_ushort()

    public void test_ushort()
        throws Exception
    {
        short testValue = (short) 4711;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_ushort(testValue);
        assertEquals(testValue, outAny.extract_ushort());

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_ushort());
View Full Code Here

Examples of org.omg.CORBA.Any.insert_ushort()

            case TCKind._tk_double:
                _any.insert_double(discriminator);
                break;

            case TCKind._tk_ushort:
                _any.insert_ushort((short) discriminator);
                break;
            }

            int _memberCount = unionTypeCode.member_count();
View Full Code Here

Examples of org.omg.CORBA.Any.insert_ushort()

    @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
        );
View Full Code Here

Examples of org.omg.CORBA.Any.insert_ushort()

    public void test_ushort()
        throws Exception
    {
        short testValue = (short) 4711;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_ushort(testValue);
        assertEquals(testValue, outAny.extract_ushort());

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_ushort());
View Full Code Here

Examples of org.omg.DynamicAny.DynAny.insert_ushort()

      DynAny   dynAny = createDynAnyFromTypeCode (tc);

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

      dynAny.insert_ushort ((short)700);
      assertEquals (msg, (short)700, dynAny.get_ushort());
   }

      /**
    * Test inserting a basic value into a DynAny that has a different typecode.
View Full Code Here

Examples of org.omg.DynamicAny.DynAny.insert_ushort()

      TypeCode tc     = orb.get_primitive_tc (org.omg.CORBA.TCKind.tk_long);
      DynAny   dynAny = createDynAnyFromTypeCode (tc);

      try
      {
          dynAny.insert_ushort ((short)700);
          fail ("should have thrown TypeMismatch");
      }
      catch (TypeMismatch ex)
      {
          // ok
View Full Code Here

Examples of org.omg.DynamicAny.DynAny.insert_ushort()

      DynAny   dynAny = createDynAnyFromTypeCode (tc);

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

      dynAny.insert_ushort ((short)700);
      assertEquals (msg, (short)700, dynAny.get_ushort());
   }

      /**
    * Test inserting a basic value into a DynAny that has a different typecode.
View Full Code Here

Examples of org.omg.DynamicAny.DynAny.insert_ushort()

      TypeCode tc     = orb.get_primitive_tc (org.omg.CORBA.TCKind.tk_long);
      DynAny   dynAny = createDynAnyFromTypeCode (tc);

      try
      {
          dynAny.insert_ushort ((short)700);
          fail ("should have thrown TypeMismatch");
      }
      catch (TypeMismatch ex)
      {
          // ok
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.