Examples of extract_long()


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

        type = orb.get_primitive_tc(TCKind.tk_any);
        d1 = factory.create_dyn_any_from_type_code(type);
        any.insert_long(345678);
        d1.insert_any(any);
        av = d1.get_any();
        longVal = av.extract_long();
        TEST(longVal == 345678);

        any = orb.create_any();

        Any anyVal = orb.create_any();
View Full Code Here

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

        TEST(d1.equal(d2));

        av = d1.to_any();

        Any cap = av.extract_any();
        longVal = cap.extract_long();
        TEST(longVal == 345678);

        anyVal.insert_string("anyValue");
        any.insert_any(anyVal);
        d2.from_any(any);
View Full Code Here

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

        any.insert_long(longValue);
        anyHandler.setValue(any);
        expectedSchemaType = "xs:int";
        result = anyHandler.getValue();
        assertTrue(result.type().kind().value() == TCKind._tk_long);
        int longResult = result.extract_long();
        assertTrue(longResult == longValue);
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultSchemaType.equals(expectedSchemaType));

        int ulongValue = 12345;
View Full Code Here

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

            TEST(d1.get_long() == -530000);
            d1.insert_long(3200000);
            TEST(d1.get_long() == 3200000);

            av = d1.to_any();
            int longVal = av.extract_long();
            TEST(longVal == 3200000);

            any.insert_long(3200000);
            d2 = factory.create_dyn_any(any);
            TEST(d1.equal(d2));
View Full Code Here

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

            type = orb.get_primitive_tc(TCKind.tk_any);
            d1 = factory.create_dyn_any_from_type_code(type);
            any.insert_long(345678);
            d1.insert_any(any);
            av = d1.get_any();
            longVal = av.extract_long();
            TEST(longVal == 345678);

            Any anyVal = orb.create_any();
            anyVal.insert_long(345678);
            any.insert_any(anyVal);
View Full Code Here

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

            d2 = factory.create_dyn_any(any);
            TEST(d1.equal(d2));

            av = d1.to_any();
            Any cap = av.extract_any();
            longVal = cap.extract_long();
            TEST(longVal == 345678);

            anyVal.insert_string("anyValue");
            any.insert_any(anyVal);
            d2.from_any(any);
View Full Code Here

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

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

    /* 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

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

            /* 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

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

        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
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.