Package org.apache.tuscany.sca.implementation.notification

Examples of org.apache.tuscany.sca.implementation.notification.NotificationComponentInvoker


        RuntimeComponent component = EasyMock.createNiceMock(RuntimeComponent.class);
        EasyMock.expect(component.getName()).andReturn("LocalNotificationComponentTest");
        EasyMock.expect(component.getReferences()).andReturn(references);
        EasyMock.replay(component);
       
        Invoker localNotificationInvoker = new NotificationComponentInvoker(operation, component);
       
        Message msg = EasyMock.createNiceMock(Message.class);
        EasyMock.expect(msg.getBody()).andReturn("msg").times(3)// once per sub int + once in notif target invoker
        EasyMock.replay(msg);
        localNotificationInvoker.invoke(msg);
        EasyMock.verify(msg);
        } catch(Throwable e) {
            e.printStackTrace();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.implementation.notification.NotificationComponentInvoker

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.