return "issues/multicast-router-mule-2112-test.xml";
}
public void testMulticastRoutingOverTwoEndpoints() throws Exception
{
FunctionalTestComponent hop1 = getFunctionalTestComponent("hop1");
assertNotNull(hop1);
FunctionalTestComponent hop2 = getFunctionalTestComponent("hop2");
assertNotNull(hop2);
final AtomicBoolean hop1made = new AtomicBoolean(false);
EventCallback callback1 = new EventCallback()
{
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));
}
};
hop1.setEventCallback(callback1);
hop2.setEventCallback(callback2);
MuleClient client = new MuleClient(muleContext);
client.send("vm://inbound", "payload", null);
Thread.sleep(1000);