Author: jim.ma
Date: 2015-02-09 01:32:10 -0500 (Mon, 09 Feb 2015)
New Revision: 19437
Modified:
stack/cxf/branches/arquillian/modules/testsuite/cxf-spring-tests/src/test/scripts/jbws_testsuite_spring_default.groovy
Log:
Fix groovy NPE for wildfly800
Modified:
stack/cxf/branches/arquillian/modules/testsuite/cxf-spring-tests/src/test/scripts/jbws_testsuite_spring_default.groovy
===================================================================
---
stack/cxf/branches/arquillian/modules/testsuite/cxf-spring-tests/src/test/scripts/jbws_testsuite_spring_default.groovy 2015-02-08
20:27:48 UTC (rev 19436)
+++
stack/cxf/branches/arquillian/modules/testsuite/cxf-spring-tests/src/test/scripts/jbws_testsuite_spring_default.groovy 2015-02-09
06:32:10 UTC (rev 19437)
@@ -109,6 +109,9 @@
**/
def hornetqServer = root.profile.subsystem.'hornetq-server'[0]
def jmsDestinations = hornetqServer.'jms-destinations'[0]
+if (jmsDestinations == null) {
+ jmsDestinations = hornetqServer.appendNode('jms-destinations');
+}
def jmsQueue = jmsDestinations.appendNode('jms-queue',
['name':'testQueue'])
jmsQueue.appendNode('entry', ['name':'queue/test'])
jmsQueue.appendNode('entry',
['name':'java:jboss/exported/jms/queue/test'])
@@ -134,4 +137,4 @@
def srcRolesProperties = project.properties['srcRolesProperties']
def destRolesProperties = project.properties['destRolesProperties']
new AntBuilder().copy( file:srcRolesProperties,
- tofile:destRolesProperties)
\ No newline at end of file
+ tofile:destRolesProperties)
Show replies by date