ResourceType type1 = new ResourceType("queue", "jbossas", ResourceCategory.SERVICE, null);
CreateResourceReport createReport1 = new CreateResourceReport(queueName, type1, null, testQueueConfiguration,
null);
createReport1.setStatus(CreateResourceStatus.IN_PROGRESS);
xmlEditor = new JMSConfigurationEditor(JMS_QUEUE);
xmlEditor.updateConfiguration(xmlFile, queueName, createReport1);
Configuration config = xmlEditor.loadConfiguration(xmlFile, queueName);
assert config != null : "configuration object should not be null";
assertTestConfig(config, queueName);
String topicName = "createTopic";
Configuration testTopicConfiguration = createConfiguration(topicName);
ResourceType type2 = new ResourceType("topic", "jbossas", ResourceCategory.SERVICE, null);
CreateResourceReport createReport2 = new CreateResourceReport(topicName, type2, null, testTopicConfiguration,
null);
createReport2.setStatus(CreateResourceStatus.IN_PROGRESS);
xmlEditor = new JMSConfigurationEditor(JMS_TOPIC);
xmlEditor.updateConfiguration(xmlFile, topicName, createReport2);
config = xmlEditor.loadConfiguration(xmlFile, topicName);
assert config != null : "configuration object should not be null";