Package org.omg.CORBA

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


            TEST(d1.get_char() == 'A');
            d1.insert_char('z');
            TEST(d1.get_char() == 'z');

            av = d1.to_any();
            char charVal = av.extract_char();
            TEST(charVal == 'z');

            any.insert_char('z');
            d2 = factory.create_dyn_any(any);
            TEST(d1.equal(d2));
View Full Code Here


        any.insert_char(charValue);
        anyHandler.setValue(any);
        expectedSchemaType = "xs:byte";
        result = anyHandler.getValue();
        assertTrue(result.type().kind().value() == TCKind._tk_char);
        char charResult = result.extract_char();
        assertTrue(charResult == charValue);
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultSchemaType.equals(expectedSchemaType));

        char wcharValue = 'w';
View Full Code Here

        d1.insert_char('z');
        TEST(d1.get_char() == 'z');

        av = d1.to_any();

        char charVal = av.extract_char();
        TEST(charVal == 'z');

        any.insert_char('z');
        d2 = factory.create_dyn_any(any);
        TEST(d1.equal(d2));
View Full Code Here

        any.insert_char(charValue);
        anyHandler.setValue(any);
        expectedSchemaType = "xs:byte";
        result = anyHandler.getValue();
        assertTrue(result.type().kind().value() == TCKind._tk_char);
        char charResult = result.extract_char();
        assertTrue(charResult == charValue);
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultSchemaType.equals(expectedSchemaType));

        char wcharValue = 'w';
View Full Code Here

            TEST(d1.get_char() == 'A');
            d1.insert_char('z');
            TEST(d1.get_char() == 'z');

            av = d1.to_any();
            char charVal = av.extract_char();
            TEST(charVal == 'z');

            any.insert_char('z');
            d2 = factory.create_dyn_any(any);
            TEST(d1.equal(d2));
View Full Code Here

        throws Exception
    {
        char testValue = 'c';
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_char(testValue);
        assertEquals(testValue, outAny.extract_char());

        Any inAny = server.bounce_any(outAny);

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

        outAny.insert_char(testValue);
        assertEquals(testValue, outAny.extract_char());

        Any inAny = server.bounce_any(outAny);

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

    public void test_char_streamable()
        throws Exception
View Full Code Here

        throws Exception
    {
        char testValue = 'c';
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new CharHolder(testValue));
        assertEquals(testValue, outAny.extract_char());

        Any inAny = server.bounce_any(outAny);

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

        outAny.insert_Streamable(new CharHolder(testValue));
        assertEquals(testValue, outAny.extract_char());

        Any inAny = server.bounce_any(outAny);

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

    public void test_char_stream()
    {
View Full Code Here

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

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