Package org.omg.CORBA

Examples of org.omg.CORBA.CharHolder


        }
    }

    public void test_pass_out_char()
    {
        CharHolder x = new CharHolder ( 'a' );
        server.pass_out_char( (short)'c', x );
        assertEquals( 'c', x.value );

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


        assertEquals( E_ACUTE, x.value );
    }

    public void test_pass_out_char_illegal()
    {
        CharHolder x = new CharHolder ( 'a' );
        try
        {
            server.pass_out_char( (short)EURO_SIGN, x );
            fail( "exception expected for euro sign" );
        }
View Full Code Here

        }
    }

    public void test_pass_inout_char()
    {
        CharHolder x = new CharHolder( 'a' );
        server.pass_inout_char( x );
        assertEquals( 'A', x.value );

        x.value = E_ACUTE;
        server.pass_inout_char( x );
View Full Code Here

        assertEquals( '\u00c9', x.value );
    }

    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

        assertEquals( (short)0xA000, result );
    }

    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

        assertEquals( '\uA000', x.value );
    }

    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

    }

    @Test
    public void test_pass_out_char()
    {
        CharHolder x = new CharHolder ( 'a' );
        server.pass_out_char( (short)'c', x );
        assertEquals( 'c', x.value );

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

    }

    @Test
    public void test_pass_out_char_illegal()
    {
        CharHolder x = new CharHolder ( 'a' );
        try
        {
            server.pass_out_char( (short)EURO_SIGN, x );
            fail( "exception expected for euro sign" );
        }
View Full Code Here

    }

    @Test
    public void test_pass_inout_char()
    {
        CharHolder x = new CharHolder( 'a' );
        server.pass_inout_char( x );
        assertEquals( 'A', x.value );

        x.value = E_ACUTE;
        server.pass_inout_char( x );
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.