FunctionalTestComponent hop1 = getFunctionalTestComponent("hop1Service");
FunctionalTestComponent hop2 = getFunctionalTestComponent("hop2Service");
assertNotNull(hop1);
final AtomicBoolean hop1made = new AtomicBoolean(false);
EventCallback callback1 = new EventCallback()
{
@Override
public void eventReceived(final MuleEventContext context, final Object component) throws Exception
{
assertTrue(hop1made.compareAndSet(false, true));
FunctionalTestComponent ftc = (FunctionalTestComponent) component;
ftc.setReturnData("Hop1 ACK");
}
};
final AtomicBoolean hop2made = new AtomicBoolean(false);
EventCallback callback2 = new EventCallback()
{
@Override
public void eventReceived(final MuleEventContext context, final Object component) throws Exception
{
MuleMessage msg = context.getMessage();