assertFalse(c.isEmbeddedMode());
}
public void testConnectorConfig() throws Exception
{
JmsConnector c = (JmsConnector) muleContext.getRegistry().lookupConnector("jmsConnector1");
assertNotNull(c);
assertNotNull(c.getConnectionFactory());
assertTrue(c.getConnectionFactory() instanceof TestConnectionFactory);
assertEquals(Session.DUPS_OK_ACKNOWLEDGE, c.getAcknowledgementMode());
assertEquals("myuser", c.getUsername());
assertEquals("mypass", c.getPassword());
assertNotNull(c.getRedeliveryHandlerFactory());
assertTrue(c.getRedeliveryHandlerFactory().create() instanceof TestRedeliveryHandler);
assertEquals("myClient", c.getClientId());
assertTrue(c.isDurable());
assertTrue(c.isNoLocal());
assertTrue(c.isPersistentDelivery());
assertEquals(5, c.getMaxRedelivery());
assertTrue(c.isCacheJmsSessions());
assertFalse(c.isEagerConsumer());
assertEquals("1.1", c.getSpecification()); // 1.0.2b is the default, should be changed in the config
//test properties, default is 4
assertEquals(7, c.getNumberOfConcurrentTransactedReceivers());
assertTrue(c.isEmbeddedMode());
}