Package org.jacorb.test.bugs.bug980.Initializer

Examples of org.jacorb.test.bugs.bug980.Initializer.ORBMediator


    }

    @Test
    public void testCurrent() throws Exception
    {
        ORBMediator med1 =
            (ORBMediator) orb.resolve_initial_references(ORBMediator.INITIAL_REFERENCE_ID);
        Current curr1 = CurrentHelper.narrow(orb.resolve_initial_references("PICurrent"));

        ORB orb2 = getAnotherORB(this.orbProps);
        ORBMediator med2 =
            (ORBMediator) orb2.resolve_initial_references(ORBMediator.INITIAL_REFERENCE_ID);
        Current curr2 = CurrentHelper.narrow(orb2.resolve_initial_references("PICurrent"));

        assertFalse ("ORBs should be different", orb.equals(orb2));

        assertFalse ("Mediators object should be different!", med1.equals(med2));

        assertFalse ("Currents should be different!", curr1.equals(curr2));


        int slot1 = med1.getSlot();
        Any any1 = orb.create_any();
        String info1 = "information from Current 1";
        any1.insert_string(info1);
        curr1.set_slot(slot1, any1);

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

        if (anyFrom2.type().kind().value() != TCKind._tk_null)
        {
            String extractedFrom2 = anyFrom2.extract_string();
View Full Code Here

TOP

Related Classes of org.jacorb.test.bugs.bug980.Initializer.ORBMediator

Copyright © 2018 www.massapicom. 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.