Package org.apache.yoko.orb.CORBA

Examples of org.apache.yoko.orb.CORBA.NVList


        arguments[0].setMode(org.omg.CORBA.ARG_OUT.value);
       
        CorbaConduit conduit = setupCorbaConduit(false);
        Message msg = new MessageImpl();
        CorbaMessage message = new CorbaMessage(msg);
        NVList list = (NVList)conduit.getArguments(message);
        assertNotNull("list should not be null", list != null);
       
        message.setStreamableArguments(arguments);
        NVList listArgs = (NVList)conduit.getArguments(message);
        assertNotNull("listArgs should not be null", listArgs != null);
        assertNotNull("listArgs Item should not be null", listArgs.item(0) != null);
        assertEquals("Name should be equal", listArgs.item(0).name(), "object");
        assertEquals("flags should be 2", listArgs.item(0).flags(), 2);
        assertNotNull("Any Value should not be null", listArgs.item(0).value() != null);       
    }
View Full Code Here


        org.omg.CORBA.Object obj = control.createMock(org.omg.CORBA.Object.class);
        EasyMock.expect(message.get(CorbaConstants.CORBA_ENDPOINT_OBJECT)).andReturn(obj);
       
        //msg.put(CorbaConstants.CORBA_ENDPOINT_OBJECT, obj);       
        Request r = control.createMock(Request.class);       
        NVList nvList = (NVList)orb.create_list(0);
        NamedValue ret = control.createMock(NamedValue.class);
        ExceptionList exList = control.createMock(ExceptionList.class);       
       
        EasyMock.expect(obj._create_request(EasyMock.isA(Context.class),
                            EasyMock.eq("greetMe"),
View Full Code Here

        conduit.close(msg);
        control.verify();
    }       
               
    public void testBuildRequestResult() {
        NVList list = (NVList)orb.create_list(0);       
        CorbaServerConduit conduit = setupCorbaServerConduit(false)
        CorbaMessage msg = control.createMock(CorbaMessage.class);
        Exchange exchange = control.createMock(Exchange.class);       
        ServerRequest request = control.createMock(ServerRequest.class);
       
View Full Code Here

        conduit.buildRequestResult(msg);
        control.verify();       
    }
   
    public void testBuildRequestResultException() {
        NVList list = (NVList)orb.create_list(0);       
        CorbaServerConduit conduit = setupCorbaServerConduit(false)
        CorbaMessage msg = control.createMock(CorbaMessage.class);
        Exchange exchange = control.createMock(Exchange.class);       
        ServerRequest request = control.createMock(ServerRequest.class);
       
View Full Code Here

        CorbaPrimitiveHandler obj = new CorbaPrimitiveHandler(objName, objIdlType, objTypeCode, null);
        CorbaStreamable arg = new CorbaStreamable(obj, objName);       
        arguments[0] = arg;
        arguments[0].setMode(org.omg.CORBA.ARG_OUT.value);       
       
        NVList nvlist = (NVList)orb.create_list(2);   
        Any value = orb.create_any();
        value.insert_Streamable(arguments[0]);
        nvlist.add_value(arguments[0].getName(), value, arguments[0].getMode());
       
        CorbaServerConduit conduit = setupCorbaServerConduit(false)
        CorbaMessage msg = control.createMock(CorbaMessage.class);
        Exchange exchange = control.createMock(Exchange.class);       
        ServerRequest request = control.createMock(ServerRequest.class);
View Full Code Here

TOP

Related Classes of org.apache.yoko.orb.CORBA.NVList

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.