Examples of ActivitiComponent


Examples of org.activiti.camel.ActivitiComponent

    // Stub the jms component by replacing it with seda
    context.addComponent("jms", context.getComponent("seda", SedaComponent.class));
   
    // Add a mock that will act as the activiti component. We'll actually use this
    // to verify the behavior of our route later.
    ActivitiComponent activitiComponent = mock(ActivitiComponent.class);
    ActivitiEndpoint activitiEndpoint = mock(ActivitiEndpoint.class);
    when(activitiEndpoint.getEndpointKey()).thenReturn("activiti:open-account");
    when(activitiEndpoint.getEndpointUri()).thenReturn("activiti:open-account");
    when(activitiComponent.createEndpoint(anyString())).thenReturn(activitiEndpoint);
    when(activitiComponent.getCamelContext()).thenReturn(context);
    when(activitiEndpoint.getCamelContext()).thenReturn(context);
    activitiProducer = mock(ActivitiProducer.class);
    // This is the slightly tricky part, we need some kind of feedback when the
    // activiti-camel component's producer is invoked. This will let us know that
    // the routes were successfully executed up to the process start. And yes,
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.