geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r160147 - geronimo/trunk/modules/axis/src/test/org/apache/geronimo/axis/AxisWebServiceContainerTest.java
Date Tue, 05 Apr 2005 09:39:40 GMT
Author: dblevins
Date: Tue Apr  5 02:39:39 2005
New Revision: 160147

URL: http://svn.apache.org/viewcvs?view=rev&rev=160147
Log:
Updated test case

Modified:
    geronimo/trunk/modules/axis/src/test/org/apache/geronimo/axis/AxisWebServiceContainerTest.java

Modified: geronimo/trunk/modules/axis/src/test/org/apache/geronimo/axis/AxisWebServiceContainerTest.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/axis/src/test/org/apache/geronimo/axis/AxisWebServiceContainerTest.java?view=diff&r1=160146&r2=160147
==============================================================================
--- geronimo/trunk/modules/axis/src/test/org/apache/geronimo/axis/AxisWebServiceContainerTest.java
(original)
+++ geronimo/trunk/modules/axis/src/test/org/apache/geronimo/axis/AxisWebServiceContainerTest.java
Tue Apr  5 02:39:39 2005
@@ -37,6 +37,7 @@
 import org.apache.geronimo.axis.server.ReadOnlyServiceDesc;
 import org.apache.geronimo.axis.server.POJOProvider;
 import org.apache.geronimo.axis.testData.echosample.EchoBean;
+import org.apache.geronimo.webservices.WebServiceContainer;
 
 //import org.openejb.deployment.OpenEJBModuleBuilder;
 
@@ -86,7 +87,8 @@
         ReadOnlyServiceDesc sd = new ReadOnlyServiceDesc(serviceDesc);
 
         Class pojoClass = cl.loadClass("org.apache.geronimo.axis.testData.echosample.EchoBean");
-        RPCProvider provider = new POJOProvider(pojoClass);
+
+        RPCProvider provider = new POJOProvider();
         SOAPService service = new SOAPService(null, provider, null);
         service.setServiceDescription(serviceDesc);
         service.setOption("className","org.apache.geronimo.axis.testData.echosample.EchoBean");
@@ -117,6 +119,8 @@
                 new HashMap());
         AxisResponse res =
             new AxisResponse("text/xml; charset=utf-8", "127.0.0.1", null, null, 8080, System.out);
+
+        req.setAttribute(WebServiceContainer.POJO_INSTANCE, pojoClass.newInstance());
         continaer.invoke(req, res);
         System.out.flush();
     }



Mime
View raw message