Package org.omg.CORBA

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


        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

        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

        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

            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

        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

        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

        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

                   //      org.omg.CORBA.CompletionStatus.COMPLETED_NO);
                   //  throw ex;
                }
            }
            else {
                any.extract_ulong();
            }

        }
        catch (org.omg.PortableInterceptor.InvalidSlot e) {
                   throw new org.omg.CORBA.INTERNAL ("Invalid Slot " + e);
View Full Code Here

                    // CDMW_LOG_FUNCTION_EXCEPTION(FTLogger.GetLogger(), ex);
                    // throw ex;
                }
            }
            else {
                any.extract_ulong();
            }

        }
        catch (org.omg.PortableInterceptor.InvalidSlot e) {
           throw new org.omg.CORBA.INTERNAL ("Invalid Slot " + e);
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.