doTestDeployTopicsWithUnusualNames(topicName, topicName, jndiName);
}
public void testDeployFullConfiguration() throws Exception
{
JMSServerDeployer deployer = new JMSServerDeployer(jmsServer, deploymentManager);
String conf = "hornetq-jms-for-JMSServerDeployerTest.xml";
URL confURL = Thread.currentThread().getContextClassLoader().getResource(conf);
String[] connectionFactoryBindings = new String[] { "/fullConfigurationConnectionFactory",
"/acme/fullConfigurationConnectionFactory",
"java:/xyz/tfullConfigurationConnectionFactory",
"java:/connectionfactories/acme/fullConfigurationConnectionFactory" };
String[] queueBindings = new String[] { "/fullConfigurationQueue", "/queue/fullConfigurationQueue" };
String[] topicBindings = new String[] { "/fullConfigurationTopic", "/topic/fullConfigurationTopic" };
for (String binding : connectionFactoryBindings)
{
UnitTestCase.checkNoBinding(context, binding);
}
for (String binding : queueBindings)
{
UnitTestCase.checkNoBinding(context, binding);
}
for (String binding : topicBindings)
{
UnitTestCase.checkNoBinding(context, binding);
}
deployer.deploy(confURL);
for (String binding : connectionFactoryBindings)
{
UnitTestCase.checkBinding(context, binding);
}