Package org.omg.CORBA

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


            TEST(d1.get_short() == (short) -53);
            d1.insert_short((short) 32000);
            TEST(d1.get_short() == (short) 32000);

            av = d1.to_any();
            short shortVal = av.extract_short();
            TEST(shortVal == (short) 32000);

            any.insert_short((short) 32000);
            d2 = factory.create_dyn_any(any);
            TEST(d1.equal(d2));
View Full Code Here


                s1.next();
            }
            s1.rewind();
            for (i = 0; i < 5; i++) {
                av = s1.get_any();
                s = av.extract_short();
                TEST(s == (short) i);
                s1.next();
            }

            //
View Full Code Here

            // change
            //
            s1.seek(1);
            s1.set_length(3);
            av = s1.get_any();
            s = av.extract_short();
            TEST(s == (short) 1);
            TEST(s1.get_length() == 3);
            TEST(s1.component_count() == 3);
            s1.rewind();
            for (i = 0; i < 3; i++) {
View Full Code Here

            TEST(s1.get_length() == 3);
            TEST(s1.component_count() == 3);
            s1.rewind();
            for (i = 0; i < 3; i++) {
                av = s1.get_any();
                s = av.extract_short();
                TEST(s == (short) i);
                s1.next();
            }

            //
View Full Code Here

            TestAnySeqHelper.insert(any, seq);
            s1.from_any(any);
            s1.rewind();
            for (i = 0; i < 8; i++) {
                av = s1.get_any();
                s = av.extract_short();
                TEST(s == (short) (8 - i));
                s1.next();
            }

            //
View Full Code Here

            //
            s1.rewind();
            for (i = 0; i < 8; i++) {
                comp = s1.current_component();
                av = comp.get_any();
                s = av.extract_short();
                TEST(s == (short) (8 - i));
                any.insert_short((short) i);
                comp.insert_any(any);
                av = s1.get_any();
                s = av.extract_short();
View Full Code Here

                s = av.extract_short();
                TEST(s == (short) (8 - i));
                any.insert_short((short) i);
                comp.insert_any(any);
                av = s1.get_any();
                s = av.extract_short();
                TEST(s == (short) i);
                s1.next();
            }

            //
View Full Code Here

            //
            Any[] anySeq = s1.get_elements();
            TEST(anySeq.length == 8);
            for (i = 0; i < 8; i++) {
                Any p = anySeq[i].extract_any();
                s = p.extract_short();
                TEST(s == (short) i);
            }

            //
            // Test: set_elements()
View Full Code Here

        any.insert_short(shortValue);
        anyHandler.setValue(any);
        expectedSchemaType = "xs:short";
        result = anyHandler.getValue();
        assertTrue(result.type().kind().value() == TCKind._tk_short);
        short shortResult = result.extract_short();
        assertTrue(shortResult == shortValue);
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultSchemaType.equals(expectedSchemaType));

        short ushortValue = (short)123;
View Full Code Here

        d1.insert_short((short) 32000);
        TEST(d1.get_short() == (short) 32000);

        av = d1.to_any();

        short shortVal = av.extract_short();
        TEST(shortVal == (short) 32000);

        any.insert_short((short) 32000);
        d2 = factory.create_dyn_any(any);
        TEST(d1.equal(d2));
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.