[jbossws-commits] JBossWS SVN: r12819 - in framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/endpoint: jse and 1 other directory.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Mon Aug 16 05:16:20 EDT 2010


Author: alessio.soldano at jboss.com
Date: 2010-08-16 05:16:19 -0400 (Mon, 16 Aug 2010)
New Revision: 12819

Modified:
   framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/endpoint/EndpointServlet.java
   framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/endpoint/jse/UsecasesTestCase.java
Log:
[JBWS-3107] JAXWS says: "An implementor object MUST be either an instance of a class annotated with the @WebService annotation according to the rules in chapter 3 or an instance of a class annotated with the WebServiceProvider annotation and implementing the Provider interface (see 5.1)." IOW an instance of the class is required, not the class itself.


Modified: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/endpoint/EndpointServlet.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/endpoint/EndpointServlet.java	2010-08-16 09:14:11 UTC (rev 12818)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/endpoint/EndpointServlet.java	2010-08-16 09:16:19 UTC (rev 12819)
@@ -63,7 +63,7 @@
       
       endpoint1 = Endpoint.create(SOAPBinding.SOAP11HTTP_BINDING, new EndpointBean());
       endpoint1.publish("http://localhost:8081/jaxws-endpoint");
-      endpoint2 = Endpoint.publish("http://localhost:8081/jaxws-endpoint2/endpoint/long/path", EndpointBean.class);
+      endpoint2 = Endpoint.publish("http://localhost:8081/jaxws-endpoint2/endpoint/long/path", new EndpointBean());
    }
    
    @Override

Modified: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/endpoint/jse/UsecasesTestCase.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/endpoint/jse/UsecasesTestCase.java	2010-08-16 09:14:11 UTC (rev 12818)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/endpoint/jse/UsecasesTestCase.java	2010-08-16 09:16:19 UTC (rev 12819)
@@ -57,7 +57,7 @@
    public void testDifferentPortsSameContext() throws Exception
    {
       String publishURL1 = "http://" + getServerHost() + ":" + port1 + "/jaxws-endpoint/";
-      Endpoint endpoint1 = publishEndpoint1(Endpoint1Impl.class, publishURL1);
+      Endpoint endpoint1 = publishEndpoint1(new Endpoint1Impl(), publishURL1);
 
       String publishURL2 = "http://" + getServerHost() + ":" + port2 + "/jaxws-endpoint";
       Endpoint endpoint2 = publishEndpoint2(new Endpoint1Impl(), publishURL2);
@@ -72,7 +72,7 @@
    public void testDifferentPortsNoContext() throws Exception
    {
       String publishURL1 = "http://" + getServerHost() + ":" + port1 + "/";
-      Endpoint endpoint1 = publishEndpoint1(Endpoint1Impl.class, publishURL1);
+      Endpoint endpoint1 = publishEndpoint1(new Endpoint1Impl(), publishURL1);
 
       String publishURL2 = "http://" + getServerHost() + ":" + port2;
       Endpoint endpoint2 = publishEndpoint2(new Endpoint1Impl(), publishURL2);
@@ -87,7 +87,7 @@
    public void testDifferentPortsAndLongPaths() throws Exception
    {
       String publishURL1 = "http://" + getServerHost() + ":" + port1 + "/jaxws-endpoint/endpoint/long/path/";
-      Endpoint endpoint1 = publishEndpoint3(Endpoint1Impl.class, publishURL1);
+      Endpoint endpoint1 = publishEndpoint3(new Endpoint1Impl(), publishURL1);
 
       String publishURL2 = "http://" + getServerHost() + ":" + port2 + "/jaxws-endpoint/endpoint/long/path";
       Endpoint endpoint2 = publishEndpoint1(new Endpoint1Impl(), publishURL2);
@@ -102,7 +102,7 @@
    public void testSamePortsAndAlmostIdenticalLongPaths() throws Exception
    {
       String publishURL1 = "http://" + getServerHost() + ":" + port1 + "/jaxws-endpoint/endpoint/number1/";
-      Endpoint endpoint1 = publishEndpoint2(Endpoint1Impl.class, publishURL1);
+      Endpoint endpoint1 = publishEndpoint2(new Endpoint1Impl(), publishURL1);
 
       String publishURL2 = "http://" + getServerHost() + ":" + port1 + "/jaxws-endpoint/endpoint/number11";
       Endpoint endpoint2 = publishEndpoint3(new Endpoint1Impl(), publishURL2);
@@ -117,7 +117,7 @@
    public void testDifferentPortsAndIdenticalPaths() throws Exception
    {
       String publishURL1 = "http://" + getServerHost() + ":" + port1 + "/jaxws-endpoint/endpoint/number1/";
-      Endpoint endpoint1 = publishEndpoint1(Endpoint1Impl.class, publishURL1);
+      Endpoint endpoint1 = publishEndpoint1(new Endpoint1Impl(), publishURL1);
 
       String publishURL2 = "http://" + getServerHost() + ":" + port2 + "/jaxws-endpoint/endpoint/number1";
       Endpoint endpoint2 = publishEndpoint2(new Endpoint1Impl(), publishURL2);
@@ -132,7 +132,7 @@
    public void testEndpointThrowingException() throws Exception
    {
       String publishURL = "http://" + getServerHost() + ":" + port1 + "/jaxws-endpoint/endpoint/number1";
-      Endpoint endpoint = publishEndpoint3(Endpoint1Impl.class, publishURL);
+      Endpoint endpoint = publishEndpoint3(new Endpoint1Impl(), publishURL);
       invokeEndpoint3(publishURL);
       endpoint.stop();
    }
@@ -142,7 +142,7 @@
       for (int i = 0; i < 2; i++)
       {
          String publishURL = "http://" + getServerHost() + ":" + port1 + "/jaxws-endpoint/endpoint/number1";
-         Endpoint endpoint = publishEndpoint3(Endpoint1Impl.class, publishURL);
+         Endpoint endpoint = publishEndpoint3(new Endpoint1Impl(), publishURL);
          invokeEndpoint4(publishURL);
          endpoint.stop();
       }



More information about the jbossws-commits mailing list