Package org.omg.CORBA

Examples of org.omg.CORBA.FloatHolder


    public void test_float_streamable()
        throws Exception
    {
        float testValue = (float) 4711.0;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new FloatHolder(testValue));
        assertEquals(testValue, outAny.extract_float(), 0.0);

        Any inAny = server.bounce_any(outAny);

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


    }

    @Test
    public void test_pass_out_float()
    {
        FloatHolder x = new FloatHolder( 1.0F );
        server.pass_out_float( x );
        assertEquals( 0.005F, x.value, 0 );
    }
View Full Code Here

    }

    @Test
    public void test_pass_inout_float()
    {
        FloatHolder x = new FloatHolder( -23.4F );
        server.pass_inout_float( x );
        assertEquals( -22.4F, x.value, 0 );
    }
View Full Code Here

    public void test_float_streamable()
        throws Exception
    {
        float testValue = (float) 4711.0;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new FloatHolder(testValue));
        assertEquals(testValue, outAny.extract_float(), 0.0);

        Any inAny = server.bounce_any(outAny);

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

TOP

Related Classes of org.omg.CORBA.FloatHolder

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.