Examples of read_short()


Examples of org.omg.CORBA.portable.InputStream.read_short()

        CorbaObjectWriter writer = new CorbaObjectWriter(oStream);
        Short shortValue = new Short((short)-123);
        writer.writeShort(shortValue);
       
        InputStream iStream = oStream.create_input_stream();
        short s = iStream.read_short();
        assertTrue(s == shortValue.shortValue());
    }
   
    @Test
    public void testWriteUShort() {
View Full Code Here

Examples of org.omg.CORBA.portable.InputStream.read_short()

    {
        short pre = 234;
        os.write_short(pre);
        InputStream is = os.create_input_stream();
        assertTrue(is.available() > 0);
        short post = is.read_short();
        assertEquals(pre, post);
    }

    public void testReadString() throws IOException
    {
View Full Code Here

Examples of org.omg.CORBA.portable.InputStream.read_short()

        assertEquals(is.read_char(), 'a');
        assertEquals(is.read_double(), 1.234, 0.001);
        assertEquals(is.read_float(), 2.345f, 0.001f);
        assertEquals(is.read_long(), 987);
        assertEquals(is.read_longlong(), 876);
        assertEquals(is.read_short(), (short)13);
        assertEquals(is.read_string(), "hi");
        assertEquals(is.read_ulong(), 765);
        assertEquals(is.read_ulonglong(), 567);
        assertEquals(is.read_ushort(), (short)23);
        assertEquals(is.read_wchar(), 'b');
View Full Code Here

Examples of org.omg.CORBA.portable.InputStream.read_short()

    {
        short pre = 234;
        os.write_short(pre);
        InputStream is = os.create_input_stream();
        assertTrue(is.available() > 0);
        short post = is.read_short();
        assertEquals(pre, post);
    }

    @Test
    public void testReadString() throws IOException
View Full Code Here

Examples of org.omg.CORBA.portable.InputStream.read_short()

        assertEquals(is.read_char(), 'a');
        assertEquals(is.read_double(), 1.234, 0.001);
        assertEquals(is.read_float(), 2.345f, 0.001f);
        assertEquals(is.read_long(), 987);
        assertEquals(is.read_longlong(), 876);
        assertEquals(is.read_short(), (short)13);
        assertEquals(is.read_string(), "hi");
        assertEquals(is.read_ulong(), 765);
        assertEquals(is.read_ulonglong(), 567);
        assertEquals(is.read_ushort(), (short)23);
        assertEquals(is.read_wchar(), 'b');
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.