assertNotNull(hop1);
FunctionalTestComponent hop2 = getFunctionalTestComponent("hop2");
assertNotNull(hop2);
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));
}
};
final AtomicBoolean hop2made = new AtomicBoolean(false);
EventCallback callback2 = new EventCallback()
{
public void eventReceived(final MuleEventContext context, final Object component) throws Exception
{
assertTrue(hop2made.compareAndSet(false, true));
}