cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From egl...@apache.org
Subject svn commit: r534056 - /incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/ServiceImplTest.java
Date Tue, 01 May 2007 13:12:57 GMT
Author: eglynn
Date: Tue May  1 06:12:56 2007
New Revision: 534056

URL: http://svn.apache.org/viewvc?view=rev&rev=534056
Log:
Added @Ignore'd ServiceImplTest.testNonSpecificGetPort() unit test to illustrate issue with
<jaxws:client> config.

Modified:
    incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/ServiceImplTest.java

Modified: incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/ServiceImplTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/ServiceImplTest.java?view=diff&rev=534056&r1=534055&r2=534056
==============================================================================
--- incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/ServiceImplTest.java
(original)
+++ incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/ServiceImplTest.java
Tue May  1 06:12:56 2007
@@ -42,6 +42,7 @@
 import org.apache.cxf.frontend.ClientProxy;
 import org.apache.hello_world_soap_http.Greeter;
 import org.apache.hello_world_soap_http.SOAPService;
+import org.junit.Ignore;
 import org.junit.Test;
 
 public class ServiceImplTest extends AbstractJaxWsTest {
@@ -51,6 +52,9 @@
 
     private static final QName PORT_1 = 
         new QName("http://apache.org/cxf/calculator", "CalculatorPort");
+    
+    private static final QName SOAP_PORT =
+        new QName("http://apache.org/hello_world_soap_http", "SoapPort");
 
     @Test
     public void testServiceImpl() throws Exception {
@@ -59,6 +63,23 @@
         Greeter proxy = service.getSoapPort();
         
         Client client = ClientProxy.getClient(proxy);
+        assertEquals("bar", client.getEndpoint().get("foo"));
+        assertNotNull("expected ConduitSelector", client.getConduitSelector());
+        assertTrue("unexpected ConduitSelector",
+                   client.getConduitSelector() instanceof NullConduitSelector);
+    }
+    
+    @Test
+    @Ignore
+    public void testNonSpecificGetPort() throws Exception {
+        SOAPService service = new SOAPService();
+        
+        Greeter proxy = service.getPort(Greeter.class);
+        
+        Client client = ClientProxy.getClient(proxy);
+        assertEquals("unexpected port selected",
+                     SOAP_PORT,
+                     client.getEndpoint().getEndpointInfo().getName());
         assertEquals("bar", client.getEndpoint().get("foo"));
         assertNotNull("expected ConduitSelector", client.getConduitSelector());
         assertTrue("unexpected ConduitSelector",



Mime
View raw message