Package org.omg.CORBA

Examples of org.omg.CORBA.ShortHolder


      {
        ByteHolder an_octet = new ByteHolder();
        an_octet.value = in.read_octet();

        int a_long = in.read_long();
        ShortHolder a_short = new ShortHolder();
        a_short.value = in.read_short();

        StringHolder a_string = new StringHolder();
        a_string.value = in.read_string();
View Full Code Here


  }

  public void testParameters()
  {
    ByteHolder a_byte = new ByteHolder((byte) 0);
    ShortHolder a_short = new ShortHolder((short) 3);
    StringHolder a_string = new StringHolder("[string 4]");

    // This is an 'out' parameter; the value must not be passed to servant.
    DoubleHolder a_double = new DoubleHolder(56.789);
View Full Code Here

  {
    Request r =
      object._create_request(null, "passSimple", orb.create_list(0), null);

    ByteHolder a_byte = new ByteHolder((byte) 0);
    ShortHolder a_short = new ShortHolder((short) 3);
    StringHolder a_string = new StringHolder("[string 4]");

    // This is an 'out' parameter; the value must not be passed to servant.
    DoubleHolder a_double = new DoubleHolder(56.789);
View Full Code Here

  public void testExtract_Streamable()
                              throws BAD_INV_ORDER
  {
    Streamable expectedReturn =
      new ShortHolder((short) r.nextInt(Short.MAX_VALUE));
    any.insert_Streamable(expectedReturn);

    Streamable actualReturn = any.extract_Streamable();
    assertEquals("Streamable", expectedReturn, actualReturn);
  }
View Full Code Here

    public void test_short_streamable()
        throws Exception
    {
        short testValue = (short) 4711;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new ShortHolder(testValue));
        assertEquals(testValue, outAny.extract_short());

        Any inAny = server.bounce_any(outAny);

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

    }

    @Test
    public void test_pass_inout_short()
    {
        ShortHolder x = new ShortHolder( ( short ) -4 );
        server.pass_inout_short( x );
        assertEquals( ( short ) -3, x.value );
    }
View Full Code Here

    }

    @Test
    public void test_pass_out_unsigned_short()
    {
        ShortHolder x = new ShortHolder();
        server.pass_out_unsigned_short( x );
        assertEquals( 79, x.value );
    }
View Full Code Here

    }

    @Test
    public void test_pass_inout_unsigned_short()
    {
        ShortHolder x = new ShortHolder( ( short ) 88 );
        server.pass_inout_unsigned_short( x );
        assertEquals( 89, x.value );
    }
View Full Code Here

    }

    @Test
    public void test_pass_out_short()
    {
        ShortHolder x = new ShortHolder();
        server.pass_out_short( x );
        assertEquals( 82, x.value );
    }
View Full Code Here

    public void test_short_streamable()
        throws Exception
    {
        short testValue = (short) 4711;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new ShortHolder(testValue));
        assertEquals(testValue, outAny.extract_short());

        Any inAny = server.bounce_any(outAny);

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

TOP

Related Classes of org.omg.CORBA.ShortHolder

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.