assertTrue(c.isStarted());
}
public void testAsynchronousRetryConfig() throws Exception
{
Connector c = muleContext.getRegistry().lookupConnector("testConnector8");
assertNotNull(c);
RetryPolicyTemplate rpf = c.getRetryPolicyTemplate();
assertNotNull(rpf);
assertTrue(rpf instanceof AsynchronousRetryTemplate);
rpf = ((AsynchronousRetryTemplate) rpf).getDelegate();
assertTrue(rpf instanceof SimpleRetryPolicyTemplate);
assertEquals(5, ((SimpleRetryPolicyTemplate) rpf).getCount());
assertEquals(1000, ((SimpleRetryPolicyTemplate) rpf).getFrequency());
// Give the asynchronous policy some time to connect in another thread
Thread.sleep(1000);
assertTrue(c.isConnected());
assertTrue(c.isStarted());
}