cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [10/14] cxf git commit: Fix UDP tests on my mac
Date Mon, 25 Jul 2016 15:30:44 GMT
Fix UDP tests on my mac


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/1dbc471f
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/1dbc471f
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/1dbc471f

Branch: refs/heads/3.0.x-fixes
Commit: 1dbc471fa2d1872570053b02bc904c76f58b87a1
Parents: cc929d4
Author: Daniel Kulp <dkulp@apache.org>
Authored: Tue Jun 7 13:52:42 2016 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Mon Jul 25 10:25:14 2016 -0400

----------------------------------------------------------------------
 .../cxf/transport/udp/UDPTransportTest.java     | 24 ++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/1dbc471f/rt/transports/udp/src/test/java/org/apache/cxf/transport/udp/UDPTransportTest.java
----------------------------------------------------------------------
diff --git a/rt/transports/udp/src/test/java/org/apache/cxf/transport/udp/UDPTransportTest.java
b/rt/transports/udp/src/test/java/org/apache/cxf/transport/udp/UDPTransportTest.java
index fea6ce1..9c0052c 100644
--- a/rt/transports/udp/src/test/java/org/apache/cxf/transport/udp/UDPTransportTest.java
+++ b/rt/transports/udp/src/test/java/org/apache/cxf/transport/udp/UDPTransportTest.java
@@ -22,12 +22,13 @@ package org.apache.cxf.transport.udp;
 import java.net.NetworkInterface;
 import java.util.Enumeration;
 
+import javax.jws.WebService;
+
 import org.apache.cxf.endpoint.Server;
 import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
 import org.apache.cxf.jaxws.JaxWsServerFactoryBean;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
 import org.apache.hello_world.Greeter;
-import org.apache.hello_world.GreeterImpl;
 
 import org.junit.AfterClass;
 import org.junit.BeforeClass;
@@ -40,6 +41,23 @@ public class UDPTransportTest extends AbstractBusClientServerTestBase {
     static final String PORT = allocatePort(UDPTransportTest.class);
     private static Server server; 
 
+    @WebService(serviceName = "SOAPService", 
+        endpointInterface = "org.apache.hello_world.Greeter", 
+        targetNamespace = "http://apache.org/hello_world")
+    static class GreeterImpl implements Greeter {
+        private String myName = "defaultGreeter";
+        GreeterImpl() {
+        }
+        public String greetMe(String me) {
+            return "Hello " + me;
+        }
+        public String sayHi() {
+            return "Bonjour from " + myName;
+        }
+        public void pingMe() {
+        }
+    }
+    
     
     @BeforeClass
     public static void setUpBeforeClass() throws Exception {
@@ -53,7 +71,9 @@ public class UDPTransportTest extends AbstractBusClientServerTestBase {
     
     @AfterClass 
     public static void shutdown() throws Exception {
-        server.stop();
+        if (server != null) {
+            server.stop();
+        }
     }
 
     @Test


Mime
View raw message