Examples of extract_string()


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

        {
            Current current = (Current)orb.resolve_initial_references("PICurrent");

            Any anyName = current.get_slot( IPInitializer.slotID );

            result = anyName.extract_string();
         }
         catch (InvalidSlot e)
         {
             throw new INTERNAL(e.toString());
         }
View Full Code Here

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

        _any.insert_long(10);
        Property p = new Property("number", _any);
        Any _testData = getORB().create_any();
        PropertyHelper.insert(_testData, p);
        Any a = objectUnderTest_.evaluateIdentifier(_testData, "name");
        assertEquals("number", a.extract_string());
    }


    public void testEvaluateNamedValueList() throws Exception {
        Any _any = getORB().create_any();
View Full Code Here

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

        Any outAny = setup.getClientOrb().create_any();
        MyStringAliasHelper.insert(outAny, testValue);

        Any inAny = server.bounce_any(outAny);
        assertEquals(testValue, inAny.extract_string());
        assertTrue(outAny.equal(inAny));
    }

    //compare two anys, one inserted manually, one inserted using helper
    public void test_alias2()
View Full Code Here

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

        throws Exception
    {
        String testValue = "foo";
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_string(testValue);
        assertEquals(testValue, outAny.extract_string());

        Any inAny = server.bounce_any(outAny);

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

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

        outAny.insert_string(testValue);
        assertEquals(testValue, outAny.extract_string());

        Any inAny = server.bounce_any(outAny);

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

    public void test_string_streamable()
        throws Exception
View Full Code Here

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

    {
        String testValue = "foo";

        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new StringHolder(testValue));
        assertEquals(testValue, outAny.extract_string());

        Any inAny = server.bounce_any(outAny);

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

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

        outAny.insert_Streamable(new StringHolder(testValue));
        assertEquals(testValue, outAny.extract_string());

        Any inAny = server.bounce_any(outAny);

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

    public void test_string_stream()
    {
View Full Code Here

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

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

    public void test_wstring()
        throws Exception
View Full Code Here

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

        {
            Current current = (Current) orb.resolve_initial_references( "PICurrent" );

            Any any = current.get_slot( ServerInitializer.slot_id );

            ((org.jacorb.orb.ORB)orb).getConfiguration ().getLogger("org.jacorb.test").debug ("Server extracted from PICurrent: >>" + any.extract_string() + "<<");
        }
        catch( Exception e )
        {
            throw new INTERNAL (e.getMessage());
        }
View Full Code Here

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

        int slot2 = med2.getSlot();
        Any anyFrom2 = curr2.get_slot(slot2);

        if (anyFrom2.type().kind().value() != TCKind._tk_null)
        {
            String extractedFrom2 = anyFrom2.extract_string();
System.out.println ("### "+extractedFrom2 +" and " + info1);
            assertFalse("Contains data from ORB 1", extractedFrom2.equals(info1));
        }

    }
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.