ActiveMQDynamicProducerResource extends ActiveMQProducerResource { @Override public void sendMessage(ClientMessage message) { sendMessage(address, message); } ActiveMQDynamicProducerResource(String url, String username, String password);  ActiveMQDynamicProducerResource(String url);  ActiveMQDynamicProducerResource(ServerLocator serverLocator, String username, String password);  ActiveMQDynamicProducerResource(ServerLocator serverLocator);  ActiveMQDynamicProducerResource(String url, SimpleString address, String username, String password);  ActiveMQDynamicProducerResource(String url, SimpleString address);  ActiveMQDynamicProducerResource(ServerLocator serverLocator, SimpleString address, String username, String password);  ActiveMQDynamicProducerResource(ServerLocator serverLocator, SimpleString address); @Override void sendMessage(ClientMessage message); void sendMessage(SimpleString targetAddress, ClientMessage message); ClientMessage sendMessage(SimpleString targetAddress, byte[] body); ClientMessage sendMessage(SimpleString targetAddress, String body); ClientMessage sendMessage(SimpleString targetAddress, Map<String, Object> properties); ClientMessage sendMessage(SimpleString targetAddress, byte[] body, Map<String, Object> properties); ClientMessage sendMessage(SimpleString targetAddress, String body, Map<String, Object> properties);  }
@Test public void testSendBytesAndProperties() throws Exception { sentOne = producer.sendMessage(TEST_BODY.getBytes(), TEST_PROPERTIES); sentTwo = producer.sendMessage(TEST_QUEUE_TWO, TEST_BODY.getBytes(), TEST_PROPERTIES); }
@Test public void testSendStringAndProperties() throws Exception { sentOne = producer.sendMessage(TEST_BODY, TEST_PROPERTIES); sentTwo = producer.sendMessage(TEST_QUEUE_TWO, TEST_BODY, TEST_PROPERTIES); }
@Test public void testSendBytes() throws Exception { sentOne = producer.sendMessage(TEST_BODY.getBytes()); sentTwo = producer.sendMessage(TEST_QUEUE_TWO, TEST_BODY.getBytes()); }
@Test public void testSendString() throws Exception { sentOne = producer.sendMessage(TEST_BODY); sentTwo = producer.sendMessage(TEST_QUEUE_TWO, TEST_BODY); }