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 2004/12/22 12:37:33 UTC

svn commit: r123090 - /webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/deployment/BuildERWithDeploymentTest.java

Author: hemapani
Date: Wed Dec 22 03:37:31 2004
New Revision: 123090

URL: http://svn.apache.org/viewcvs?view=rev&rev=123090
Log:
add a test case to deployment and exclude them as they fails
Modified:
   webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/deployment/BuildERWithDeploymentTest.java

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/deployment/BuildERWithDeploymentTest.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/deployment/BuildERWithDeploymentTest.java?view=diff&rev=123090&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/deployment/BuildERWithDeploymentTest.java&r1=123089&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/deployment/BuildERWithDeploymentTest.java&r2=123090
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/deployment/BuildERWithDeploymentTest.java	(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/deployment/BuildERWithDeploymentTest.java	Wed Dec 22 03:37:31 2004
@@ -16,13 +16,14 @@
 package org.apache.axis.deployment;
 
 import javax.xml.namespace.QName;
-import javax.xml.stream.XMLStreamException;
 
 import org.apache.axis.AbstractTestCase;
+import org.apache.axis.description.AxisOperation;
 import org.apache.axis.description.AxisService;
-import org.apache.axis.engine.AxisFault;
+import org.apache.axis.description.Flow;
 import org.apache.axis.engine.EngineRegistry;
-import org.apache.axis.phaseresolver.PhaseException;
+import org.apache.axis.engine.Provider;
+import org.apache.axis.impl.providers.RawXMLProvider;
 
 
 public class BuildERWithDeploymentTest extends AbstractTestCase{
@@ -33,7 +34,7 @@
         super(testName);
     }
 
-    public void testDeployment() throws AxisFault, PhaseException, DeploymentException, XMLStreamException{
+    public void testDeployment() throws Exception{
         String filename = "./target/test-resources" ;
         DeploymentEngine deploymentEngine = new DeploymentEngine(filename);
         EngineRegistry er = deploymentEngine.start();
@@ -42,5 +43,24 @@
         
         AxisService service = er.getService(new QName("echo"));
         assertNotNull(service);
+        Provider provider = service.getProvider();
+        assertNotNull(provider);
+        assertTrue(provider instanceof RawXMLProvider);
+        ClassLoader cl = service.getClassLoader();
+        assertNotNull(cl);
+        Class.forName("org.apache.axis.engine.Echo",true,cl);
+        assertNotNull(service.getName());
+        assertEquals(service.getContextPath(),"axis/service/echo");
+        
+        Flow flow = service.getFaultFlow();
+        assertTrue(flow == null || flow.getHandlerCount() == 0);
+        flow = service.getInFlow();
+        assertTrue(flow == null || flow.getHandlerCount() == 0);
+        flow = service.getOutFlow();
+        assertTrue(flow == null || flow.getHandlerCount() == 0);
+        assertNull(service.getParameter("hello"));
+        
+        AxisOperation op = service.getOperation(new QName("echo"));
+        assertNotNull(op);
     }
 }