Package org.apache.tuscany.core.implementation.java.mock.components

Examples of org.apache.tuscany.core.implementation.java.mock.components.AsyncTarget


public class OneWayWireInvocationTestCase extends TestCase {

    WireService wireService = new JDKWireService();

    public void testNoInterceptors() throws Exception {
        AsyncTarget target = createMock(AsyncTarget.class);
        target.invoke();
        expectLastCall().once();
        replay(target);
        JavaAtomicComponent component = MockFactory.createJavaComponent(target);
        WorkScheduler scheduler = createMock(WorkScheduler.class);
        scheduler.scheduleWork(isA(Runnable.class));
View Full Code Here


* @version $Rev: 451133 $ $Date: 2006-09-28 22:31:27 -0700 (Thu, 28 Sep 2006) $
*/
public class AsyncJavaTargetInvokerTestCase extends TestCase {

    public void testInvoke() throws Exception {
        AsyncTarget target = createMock(AsyncTarget.class);
        target.invoke();
        expectLastCall().once();
        replay(target);
        JavaAtomicComponent component = createJavaComponent(target);
        AsyncMonitor monitor = createMock(AsyncMonitor.class);
        replay(monitor);
View Full Code Here

        invoker.invoke(msg);
        verify(target);
    }

    public void testClone() throws Exception {
        AsyncTarget target = createMock(AsyncTarget.class);
        target.invoke();
        expectLastCall().once();
        replay(target);
        JavaAtomicComponent component = createJavaComponent(target);
        AsyncMonitor monitor = createMock(AsyncMonitor.class);
        replay(monitor);
View Full Code Here

TOP

Related Classes of org.apache.tuscany.core.implementation.java.mock.components.AsyncTarget

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.