Package org.omg.CORBA

Examples of org.omg.CORBA.LongHolder


    public void test_longlong_streamable()
        throws Exception
    {
        long testValue = 4711L;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new LongHolder(testValue));
        assertEquals(testValue, outAny.extract_longlong());

        Any inAny = server.bounce_any(outAny);

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


    }

    @Test
    public void test_pass_out_long_long()
    {
        LongHolder x = new LongHolder();
        server.pass_out_long_long( x );
        assertEquals( 84L, x.value );
    }
View Full Code Here

    }

    @Test
    public void test_pass_inout_long_long()
    {
        LongHolder x = new LongHolder( -12345678889L );
        server.pass_inout_long_long( x );
        assertEquals( -12345678888L, x.value );
    }
View Full Code Here

    }

    @Test
    public void test_pass_out_unsigned_long_long()
    {
        LongHolder x = new LongHolder();
        server.pass_out_unsigned_long_long( x );
        assertEquals( 81L, x.value );
    }
View Full Code Here

    }

    @Test
    public void test_pass_inout_unsigned_long_long()
    {
        LongHolder x = new LongHolder( 9876543210L );
        server.pass_inout_unsigned_long_long( x );
        assertEquals( 9876543211L, x.value );
    }
View Full Code Here

    public void test_longlong_streamable()
        throws Exception
    {
        long testValue = 4711L;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new LongHolder(testValue));
        assertEquals(testValue, outAny.extract_longlong());

        Any inAny = server.bounce_any(outAny);

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

TOP

Related Classes of org.omg.CORBA.LongHolder

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.