Examples of extract_ushort()


Examples of org.apache.yoko.orb.CORBA.Any.extract_ushort()

        if (any == null)
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();

        try {
            return any.extract_ushort();
        } catch (org.omg.CORBA.BAD_OPERATION e) {
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
        }
    }
View Full Code Here

Examples of org.apache.yoko.orb.CORBA.Any.extract_ushort()

        if (any == null)
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();

        try {
            return any.extract_ushort();
        } catch (org.omg.CORBA.BAD_OPERATION e) {
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
        }
    }
View Full Code Here

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

            TEST(d1.get_ushort() == (short) 199);
            d1.insert_ushort((short) 65001);
            TEST(d1.get_ushort() == (short) 65001);

            av = d1.to_any();
            short ushortVal = av.extract_ushort();
            TEST(ushortVal == (short) 65001);

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

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

        any.insert_ushort(ushortValue);
        anyHandler.setValue(any);
        expectedSchemaType = "xs:unsignedShort";
        result = anyHandler.getValue();
        assertTrue(result.type().kind().value() == TCKind._tk_ushort);
        short ushortResult = result.extract_ushort();
        assertTrue(ushortResult == ushortValue);
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultSchemaType.equals(expectedSchemaType));

        int longValue = -12345;
View Full Code Here

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

        d1.insert_ushort((short) 65001);
        TEST(d1.get_ushort() == (short) 65001);

        av = d1.to_any();

        short ushortVal = av.extract_ushort();
        TEST(ushortVal == (short) 65001);

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

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

        any.insert_ushort(ushortValue);
        anyHandler.setValue(any);
        expectedSchemaType = "xs:unsignedShort";
        result = anyHandler.getValue();
        assertTrue(result.type().kind().value() == TCKind._tk_ushort);
        short ushortResult = result.extract_ushort();
        assertTrue(ushortResult == ushortValue);
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultSchemaType.equals(expectedSchemaType));

        int longValue = -12345;
View Full Code Here

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

            TEST(d1.get_ushort() == (short) 199);
            d1.insert_ushort((short) 65001);
            TEST(d1.get_ushort() == (short) 65001);

            av = d1.to_any();
            short ushortVal = av.extract_ushort();
            TEST(ushortVal == (short) 65001);

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

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

        throws Exception
    {
        short testValue = (short) 4711;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_ushort(testValue);
        assertEquals(testValue, outAny.extract_ushort());

        Any inAny = server.bounce_any(outAny);

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

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

        outAny.insert_ushort(testValue);
        assertEquals(testValue, outAny.extract_ushort());

        Any inAny = server.bounce_any(outAny);

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

    public void test_ushort_stream()
    {
View Full Code Here

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

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

    public void test_long()
        throws Exception
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.