@Test public void testListQueues() throws Exception { Connection con = createAndStartConnection(); JmsService jmsService = new JmsService(); jmsService.setExtJmsServiceFactory(new ActiveMQJmsServiceFactory()); jmsService.setConnection(con); jmsService.send(TEST_QUEUE_NAME, "testContent", null); List<String> listQueues = jmsService.listQueues(); listQueues.contains(TEST_QUEUE_NAME); con.close(); }
public List<String> listQueues() { assertConnection(); return extJmsService.listQueues(); }
JmsService { public List<String> listQueues() { assertConnection(); return extJmsService.listQueues(); } }
JmsService { public List<String> listQueues() { assertConnection(); return extJmsService.listQueues(); }  }
JmsService { public List<String> listQueues() { assertConnection(); return extJmsService.listQueues(); }  void setConnection(Connection connection); void assertConnection(); @SuppressWarnings("unchecked") Enumeration<JmsMessage> browseQueue(final String queueName, final String selector); void send(final String queueName, final String body, final String replyTo); Integer deleteMessages(final String queueName, final String selector); int deleteMessage(final String queueName, final String messageId); List<String> listQueues(); List<String> listTopics(); void deleteQueue(final String queueName); QueueInfo getQueueInfo(String queueName); void setExtJmsServiceFactory(ExtJmsServiceFactory extJmsServiceFactory); void setConnectionFactory(ConnectionFactory cf); ConnectionFactory getConnectionFactory(); }
JmsService { public List<String> listQueues() { assertConnection(); return extJmsService.listQueues(); }  void setConnection(Connection connection); void assertConnection(); @SuppressWarnings("unchecked") Enumeration<JmsMessage> browseQueue(final String queueName, final String selector); void send(final String queueName, final String body, final String replyTo); Integer deleteMessages(final String queueName, final String selector); int deleteMessage(final String queueName, final String messageId); List<String> listQueues(); List<String> listTopics(); void deleteQueue(final String queueName); QueueInfo getQueueInfo(String queueName); void setExtJmsServiceFactory(ExtJmsServiceFactory extJmsServiceFactory); void setConnectionFactory(ConnectionFactory cf); ConnectionFactory getConnectionFactory();  }