Package org.omg.CORBA

Examples of org.omg.CORBA.Any.extract_long()


        p[0] = new Property("number", _any);
        Any _testData = getORB().create_any();
        PropertySeqHelper.insert(_testData, p);
        Any _result = objectUnderTest_.evaluateNamedValueList(_testData, "number");
        Any _second = _result.extract_any();
        assertTrue(_second.extract_long() == 10);
    }
}
View Full Code Here


        assertTrue (nvArg2.value ().extract_long () == nvArg1.value ().extract_long ());

        // Get the return value from the Request object and output results.
        result = thisReq.result().value();
        assertTrue (result.extract_long () == -100);

        // Should be no exception thrown.
        assertTrue (thisReq.env ().exception () == null);
    }
View Full Code Here

            /* extract the argugments */
            request.arguments( params );

            /* make the call */
            delegate.long_number( numAny.extract_long());

            /* set up the any for the result */
            Any s = orb.create_any();
            s.type( orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_void ));
            request.set_result( s );
View Full Code Here

        throws Exception
    {
        int testValue = 4711;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_long(testValue);
        assertEquals(testValue, outAny.extract_long());

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_long());
        assertTrue(outAny.equal(inAny));
View Full Code Here

        outAny.insert_long(testValue);
        assertEquals(testValue, outAny.extract_long());

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_long());
        assertTrue(outAny.equal(inAny));
    }

    @Test
    public void test_long_streamable()
View Full Code Here

        throws Exception
    {
        int testValue = 4711;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new IntHolder(testValue));
        assertEquals(testValue, outAny.extract_long());

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_long());
        assertTrue(outAny.equal(inAny));
View Full Code Here

        outAny.insert_Streamable(new IntHolder(testValue));
        assertEquals(testValue, outAny.extract_long());

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_long());
        assertTrue(outAny.equal(inAny));
    }

    @Test
    public void test_long_stream()
View Full Code Here

        Any any = setup.getClientOrb().create_any();
        any.type (setup.getClientOrb().get_primitive_tc(TCKind.tk_long));
        any.create_output_stream().write_long (testValue);
        // don't bounce, because we want to extract from the
        // output stream we just created
        int outValue = any.extract_long();
        assertEquals (testValue, outValue);
    }

    @Test
    public void test_ulong()
View Full Code Here

                /* extract the argugments */
                request.arguments( params );

                /* make the call */
                impl.long_number( numAny.extract_long());

                /* set up the any for the result */
                Any s = orb.create_any();
                s.type( orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_void ));
                request.set_result( s );
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.