cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1518748 - /cxf/trunk/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/AbstractJMSTester.java
Date Thu, 29 Aug 2013 18:32:07 GMT
Author: dkulp
Date: Thu Aug 29 18:32:07 2013
New Revision: 1518748

URL: http://svn.apache.org/r1518748
Log:
Hold onto the JMS wsdl URL strongly for the life of the test to make sure the proper wsdl
is used.

Modified:
    cxf/trunk/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/AbstractJMSTester.java

Modified: cxf/trunk/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/AbstractJMSTester.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/AbstractJMSTester.java?rev=1518748&r1=1518747&r2=1518748&view=diff
==============================================================================
--- cxf/trunk/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/AbstractJMSTester.java
(original)
+++ cxf/trunk/rt/transports/jms/src/test/java/org/apache/cxf/transport/jms/AbstractJMSTester.java
Thu Aug 29 18:32:07 2013
@@ -55,6 +55,7 @@ public abstract class AbstractJMSTester 
     protected EndpointReferenceType target;
     protected MessageObserver observer;
     protected Message inMessage;
+    protected String wsdlURL;
 
     public static void startBroker(JMSBrokerSetup b) throws Exception {
         assertNotNull(b);
@@ -81,13 +82,15 @@ public abstract class AbstractJMSTester 
         if (System.getProperty("cxf.config.file") != null) {
             System.clearProperty("cxf.config.file");
         }
+        wsdlURL = null;
     }
 
     protected void setupServiceInfo(String ns, String wsdl, String serviceName, String portName)
{
         URL wsdlUrl = getClass().getResource(wsdl);
+        wsdlURL = wsdlUrl.toString();
         assertNotNull(wsdlUrl);
-        EmbeddedJMSBrokerLauncher.updateWsdlExtensors(bus, wsdlUrl.toString());
-        WSDLServiceFactory factory = new WSDLServiceFactory(bus, wsdlUrl, new QName(ns, serviceName));
+        EmbeddedJMSBrokerLauncher.updateWsdlExtensors(bus, wsdlURL);
+        WSDLServiceFactory factory = new WSDLServiceFactory(bus, wsdlURL, new QName(ns, serviceName));
 
         Service service = factory.create();
         endpointInfo = service.getEndpointInfo(new QName(ns, portName));



Mime
View raw message