Examples of extract_double()


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

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

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

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

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

            TEST(d1.get_double() > 199000.0 && d1.get_double() < 199000.1);
            d1.insert_double(6500000.10001);
            TEST(d1.get_double() > 6500000.1 && d1.get_double() < 6500000.2);

            av = d1.to_any();
            double doubleVal = av.extract_double();
            TEST(doubleVal > 6500000.1 && doubleVal < 6500000.2);

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

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

        any.insert_double(doubleValue);
        anyHandler.setValue(any);
        expectedSchemaType = "xs:double";
        result = anyHandler.getValue();
        assertTrue(result.type().kind().value() == TCKind._tk_double);
        double doubleResult = result.extract_double();
        assertTrue(doubleResult == doubleValue);
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultSchemaType.equals(expectedSchemaType));

        float floatValue = 123456.78f;
View Full Code Here

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

        d1.insert_double(6500000.10001);
        TEST(d1.get_double() > 6500000.1 && d1.get_double() < 6500000.2);

        av = d1.to_any();

        double doubleVal = av.extract_double();
        TEST(doubleVal > 6500000.1 && doubleVal < 6500000.2);

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

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

        any.insert_double(doubleValue);
        anyHandler.setValue(any);
        expectedSchemaType = "xs:double";
        result = anyHandler.getValue();
        assertTrue(result.type().kind().value() == TCKind._tk_double);
        double doubleResult = result.extract_double();
        assertTrue(doubleResult == doubleValue);
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultSchemaType.equals(expectedSchemaType));

        float floatValue = 123456.78f;
View Full Code Here

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

            TEST(d1.get_double() > 199000.0 && d1.get_double() < 199000.1);
            d1.insert_double(6500000.10001);
            TEST(d1.get_double() > 6500000.1 && d1.get_double() < 6500000.2);

            av = d1.to_any();
            double doubleVal = av.extract_double();
            TEST(doubleVal > 6500000.1 && doubleVal < 6500000.2);

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

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

        throws Exception
    {
        double testValue = 4711.0;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_double(testValue);
        assertEquals(testValue, outAny.extract_double(), 0.0);

        Any inAny = server.bounce_any(outAny);

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

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

        outAny.insert_double(testValue);
        assertEquals(testValue, outAny.extract_double(), 0.0);

        Any inAny = server.bounce_any(outAny);

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

    public void test_double_streamable()
        throws Exception
View Full Code Here

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

        throws Exception
    {
        double testValue = 4711.0;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new DoubleHolder(testValue));
        assertEquals(testValue, outAny.extract_double(), 0.0);

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_double(), 0.0);
        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.