Examples of extract_ulong()


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

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

        try {
            return any.extract_ulong();
        } 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_ulong()

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

        try {
            return any.extract_ulong();
        } 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_ulong()

            TEST(d1.get_ulong() == 199000);
            d1.insert_ulong(65001000);
            TEST(d1.get_ulong() == 65001000);

            av = d1.to_any();
            int ulongVal = av.extract_ulong();
            TEST(ulongVal == 65001000);

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

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

        any.insert_ulong(ulongValue);
        anyHandler.setValue(any);
        expectedSchemaType = "xs:unsignedInt";
        result = anyHandler.getValue();
        assertTrue(result.type().kind().value() == TCKind._tk_ulong);
        int ulongResult = result.extract_ulong();
        assertTrue(ulongResult == ulongValue);
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultSchemaType.equals(expectedSchemaType));

        long longlongValue = -123456789;
View Full Code Here

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

        d1.insert_ulong(65001000);
        TEST(d1.get_ulong() == 65001000);

        av = d1.to_any();

        int ulongVal = av.extract_ulong();
        TEST(ulongVal == 65001000);

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

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

        any.insert_ulong(ulongValue);
        anyHandler.setValue(any);
        expectedSchemaType = "xs:unsignedInt";
        result = anyHandler.getValue();
        assertTrue(result.type().kind().value() == TCKind._tk_ulong);
        int ulongResult = result.extract_ulong();
        assertTrue(ulongResult == ulongValue);
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultSchemaType.equals(expectedSchemaType));

        long longlongValue = -123456789;
View Full Code Here

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

            TEST(d1.get_ulong() == 199000);
            d1.insert_ulong(65001000);
            TEST(d1.get_ulong() == 65001000);

            av = d1.to_any();
            int ulongVal = av.extract_ulong();
            TEST(ulongVal == 65001000);

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

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

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

        Any inAny = server.bounce_any(outAny);

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

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

        outAny.insert_ulong(testValue);
        assertEquals(testValue, outAny.extract_ulong());

        Any inAny = server.bounce_any(outAny);

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

    public void test_ulong_stream()
    {
View Full Code Here

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

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

    public void test_longlong()
        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.