You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2022/07/11 01:27:21 UTC

[cxf] branch main updated: Fixing org.apache.cxf.systest.mtom.ClientMtomXopWithJMSTest test cases

This is an automated email from the ASF dual-hosted git repository.

reta pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/main by this push:
     new bbf73a155b Fixing org.apache.cxf.systest.mtom.ClientMtomXopWithJMSTest test cases
bbf73a155b is described below

commit bbf73a155bf4d87d824e00e54c269fb4e697468e
Author: Andriy Redko <dr...@gmail.com>
AuthorDate: Sun Jul 10 21:27:04 2022 -0400

    Fixing org.apache.cxf.systest.mtom.ClientMtomXopWithJMSTest test cases
---
 .../org/apache/cxf/systest/mtom/ClientMtomXopWithJMSTest.java | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/systests/uncategorized/src/test/java/org/apache/cxf/systest/mtom/ClientMtomXopWithJMSTest.java b/systests/uncategorized/src/test/java/org/apache/cxf/systest/mtom/ClientMtomXopWithJMSTest.java
index d3ed72b5a3..84e0657c3f 100644
--- a/systests/uncategorized/src/test/java/org/apache/cxf/systest/mtom/ClientMtomXopWithJMSTest.java
+++ b/systests/uncategorized/src/test/java/org/apache/cxf/systest/mtom/ClientMtomXopWithJMSTest.java
@@ -29,13 +29,14 @@ import jakarta.xml.ws.BindingProvider;
 import jakarta.xml.ws.Endpoint;
 import jakarta.xml.ws.Holder;
 import jakarta.xml.ws.soap.SOAPBinding;
-
 import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory;
 import org.apache.cxf.Bus;
 import org.apache.cxf.BusFactory;
 import org.apache.cxf.jaxws.EndpointImpl;
 import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
 import org.apache.cxf.mime.TestMtom;
+import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
+import org.apache.cxf.testutil.common.EmbeddedJMSBrokerLauncher;
 import org.apache.cxf.transport.jms.ConnectionFactoryFeature;
 
 import org.junit.AfterClass;
@@ -43,15 +44,19 @@ import org.junit.Assert;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
-public class ClientMtomXopWithJMSTest {
+public class ClientMtomXopWithJMSTest extends AbstractBusClientServerTestBase {
     public static final QName MTOM_PORT = new QName("http://cxf.apache.org/mime", "TestMtomJMSPort");
     public static final QName MTOM_SERVICE = new QName("http://cxf.apache.org/mime", "TestMtomJMSService");
 
     private static Bus bus;
     private static ConnectionFactoryFeature cff;
-
+    private static EmbeddedJMSBrokerLauncher broker;
+    
     @BeforeClass
     public static void startServers() throws Exception {
+        broker = new EmbeddedJMSBrokerLauncher("vm://localhost");
+        launchServer(broker);
+        
         Object implementor = new TestMtomJMSImpl();
         bus = BusFactory.getDefaultBus();