You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by he...@apache.org on 2005/05/16 11:25:55 UTC

svn commit: r170345 - in /webservices/axis/trunk/java/modules/core: src/org/apache/axis/clientapi/Call.java src/org/apache/axis/deployment/DeploymentException.java test/org/apache/axis/deployment/BadModuleTest.java test/org/apache/axis/deployment/BadServerXMLTest.java

Author: hemapani
Date: Mon May 16 02:25:54 2005
New Revision: 170345

URL: http://svn.apache.org/viewcvs?rev=170345&view=rev
Log:
fix the deployment test

Modified:
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/clientapi/Call.java
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentException.java
    webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BadModuleTest.java
    webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BadServerXMLTest.java

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/clientapi/Call.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/clientapi/Call.java?rev=170345&r1=170344&r2=170345&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/clientapi/Call.java (original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/clientapi/Call.java Mon May 16 02:25:54 2005
@@ -18,8 +18,10 @@
 package org.apache.axis.clientapi;
 
 import org.apache.axis.context.ConfigurationContext;
+import org.apache.axis.context.EngineContextFactory;
 import org.apache.axis.context.MessageContext;
 import org.apache.axis.context.ServiceContext;
+import org.apache.axis.deployment.DeploymentException;
 import org.apache.axis.description.*;
 import org.apache.axis.engine.AxisFault;
 import org.apache.axis.engine.AxisSystemImpl;
@@ -132,8 +134,9 @@
      * @return ServiceContext that has a ConfigurationContext set in and has assumed values.
      * @throws AxisFault
      */
-    private static ServiceContext assumeServiceContext() throws AxisFault {
-        ConfigurationContext sysContext =
+    private static ServiceContext assumeServiceContext() throws AxisFault{
+        EngineContextFactory efac = new EngineContextFactory();
+        ConfigurationContext sysContext = efac.buildClientEngineContext(null);
             new ConfigurationContext(new AxisSystemImpl(new GlobalDescription()));
         QName assumedServiceName = new QName("AnonnoymousService");
         ServiceDescription axisService = new ServiceDescription(assumedServiceName);

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentException.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentException.java?rev=170345&r1=170344&r2=170345&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentException.java (original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/deployment/DeploymentException.java Mon May 16 02:25:54 2005
@@ -16,13 +16,14 @@
 
 package org.apache.axis.deployment;
 
-public class DeploymentException extends Exception {
+import org.apache.axis.engine.AxisFault;
+
+public class DeploymentException extends AxisFault {
     public DeploymentException(Throwable cause) {
         super(cause);
     }
 
-    public DeploymentException() {
-    }
+ 
 
     public DeploymentException(String message) {
         super(message);

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BadModuleTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BadModuleTest.java?rev=170345&r1=170344&r2=170345&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BadModuleTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BadModuleTest.java Mon May 16 02:25:54 2005
@@ -36,7 +36,7 @@
             InputStream in = new FileInputStream(getTestResourceFile("deployment/Badmodule.xml"));
             DeploymentParser parser = new DeploymentParser(in, null);
             GlobalDescription glabl = new GlobalDescription();
-            parser.processGlobalConfig(glabl);
+            parser.processGlobalConfig(glabl,DeploymentConstants.SERVERST);
             fail("this must failed gracefully with DeploymentException or FileNotFoundException");
         } catch (FileNotFoundException e) {
             return;

Modified: webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BadServerXMLTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BadServerXMLTest.java?rev=170345&r1=170344&r2=170345&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BadServerXMLTest.java (original)
+++ webservices/axis/trunk/java/modules/core/test/org/apache/axis/deployment/BadServerXMLTest.java Mon May 16 02:25:54 2005
@@ -36,7 +36,7 @@
             InputStream in = new FileInputStream(getTestResourceFile("deployment/BadServer.xml"));
             DeploymentParser parser = new DeploymentParser(in, null);
             GlobalDescription glabl = new GlobalDescription();
-            parser.processGlobalConfig(glabl);
+            parser.processGlobalConfig(glabl,DeploymentConstants.SERVERST);
             fail("this must failed gracefully with DeploymentException or FileNotFoundException");
         } catch (FileNotFoundException e) {
             return;