Package org.omg.CORBA

Examples of org.omg.CORBA.CharHolder


    }

    @Test
    public void test_pass_inout_char_illegal()
    {
        CharHolder x = new CharHolder( EURO_SIGN );
        try
        {
            server.pass_inout_char( x );
            fail( "exception expected for euro sign" );
        }
View Full Code Here


    }

    @Test
    public void test_pass_out_wchar()
    {
        CharHolder x = new CharHolder( 'a' );
        server.pass_out_wchar( (short)'s', x );
        assertEquals( 's', x.value );

        server.pass_out_wchar( (short)E_ACUTE, x );
        assertEquals( E_ACUTE, x.value );
View Full Code Here

    }

    @Test
    public void test_pass_inout_wchar()
    {
        CharHolder x = new CharHolder( E_ACUTE );
        server.pass_inout_wchar( x );
        assertEquals ( '\u00c9', x.value )// capital e acute
    }
View Full Code Here

    public void test_char_streamable()
        throws Exception
    {
        char testValue = 'c';
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new CharHolder(testValue));
        assertEquals(testValue, outAny.extract_char());

        Any inAny = server.bounce_any(outAny);

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

TOP

Related Classes of org.omg.CORBA.CharHolder

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.