156157158159160161162163164165166
} @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" ); }
223224225226227228229230231232233
} @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 );
240241242243244245246247248
} @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 }
487488489490491492493494495496497
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());