User: cgjung  
  Date: 02/02/07 01:49:32

  Modified:    jboss.net/testsuite/src/main/org/jboss/test/net
                        AxisTestCase.java AxisTestServices.java
  Log:
  jboss.net runs again (given two pending patches to the server module).
  
  Revision  Changes    Path
  1.4       +19 -15    
contrib/jboss.net/testsuite/src/main/org/jboss/test/net/AxisTestCase.java
  
  Index: AxisTestCase.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/jboss.net/testsuite/src/main/org/jboss/test/net/AxisTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AxisTestCase.java 4 Feb 2002 09:38:59 -0000       1.3
  +++ AxisTestCase.java 7 Feb 2002 09:49:32 -0000       1.4
  @@ -5,7 +5,7 @@
    * See terms of license at gnu.org.
    */
   
  -// $Id: AxisTestCase.java,v 1.3 2002/02/04 09:38:59 cgjung Exp $
  +// $Id: AxisTestCase.java,v 1.4 2002/02/07 09:49:32 cgjung Exp $
   
   package org.jboss.test.net;
   
  @@ -35,35 +35,39 @@
    * Junit Test class with some Axis support
    * @created 12. Oktober 2001, 11:20
    * @author <a href="mailto:[EMAIL PROTECTED]";>Christoph G. Jung</a>
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
  + * Change History:
  + * <ul>
  + * <li> jung, 6.2.2002: adapted to new test case structure. </li>
  + * </ul>
    */
   
   public class AxisTestCase extends JBossTestCase {
  -    
  +
      /** the protocol we use */
      protected String PROTOCOL="http://";;
  -   
  +
      /** the address to which we forward the request */
      protected String ADDRESS="localhost:8080/";
  -   
  +
       /** where the axis servlet context is installed */
       protected String AXIS_CONTEXT=ADDRESS+"axis/";
  -    
  +
       /** where the service port is located under */
       protected String SERVICE_PORT=AXIS_CONTEXT+"services";
  -    
  +
       /** has an associated end point that may be configured once */
       protected String END_POINT=PROTOCOL+SERVICE_PORT;
   
       /** the engine that this test case uses */
       protected AxisEngine engine;
  -    
  +
       /** the map of methods to interface names */
       protected Map interfaceMap=new AxisInvocationHandler.DefaultInterfaceMap();;
  -    
  +
      /** the map of methods to method names */
       protected Map methodMap=new AxisInvocationHandler.DefaultMethodMap();
  -    
  +
       /** Creates new AxisTestCase */
       public AxisTestCase(String name) {
           super(name);
  @@ -75,22 +79,22 @@
           System.out.println("Configuring engine with config "+resource);
           engine=new AxisClient(new XMLResourceProvider(resource));
       }
  -    
  +
       /** searches for the right configuration provider */
       protected String getAxisConfiguration() {
           return "client-config.xml";
       }
  -    
  +
       /** creates a new Axis service using the test engine*/
       protected AxisInvocationHandler createAxisInvocationHandler(URL endpoint) 
throws AxisFault {
           return new AxisInvocationHandler(endpoint,engine,methodMap,interfaceMap);
       }
  -    
  +
       /** creates a new Axis service using the test engine*/
       protected MBeanInvocationHandler createMBeanInvocationHandler(URL endpoint) 
throws AxisFault {
           return new MBeanInvocationHandler(endpoint,engine,methodMap,interfaceMap);
       }
  -    
  +
       /** creates a new Axis service using the test engine*/
       protected Object createAxisService(Class _class, URL endpoint) throws AxisFault 
{
           return 
AxisInvocationHandler.createAxisService(_class,createAxisInvocationHandler(endpoint));
  @@ -129,7 +133,7 @@
   
      protected static Test getAxisSetup(final Class clazz, final String jarName) 
throws Exception
      {
  -      TestSuite suite = new TestSuite();  
  +      TestSuite suite = new TestSuite();
         suite.addTest(new TestSuite(clazz));
         return getAxisSetup(suite, jarName);
      }
  
  
  
  1.3       +15 -21    
contrib/jboss.net/testsuite/src/main/org/jboss/test/net/AxisTestServices.java
  
  Index: AxisTestServices.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/jboss.net/testsuite/src/main/org/jboss/test/net/AxisTestServices.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AxisTestServices.java     3 Jan 2002 04:00:55 -0000       1.2
  +++ AxisTestServices.java     7 Feb 2002 09:49:32 -0000       1.3
  @@ -5,7 +5,7 @@
    * See terms of license at gnu.org.
    */
   
  -// $Id: AxisTestServices.java,v 1.2 2002/01/03 04:00:55 user57 Exp $
  +// $Id: AxisTestServices.java,v 1.3 2002/02/07 09:49:32 cgjung Exp $
   
   package org.jboss.test.net;
   
  @@ -18,48 +18,42 @@
    * helper functions to deal with the JBoss integrated axis service
    * @created  15. Oktober 2001, 18:39
    * @author <a href="mailto:[EMAIL PROTECTED]";>Christoph G. Jung</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
  + * Change History:
  + * <ul>
  + * <li> jung, 6.2.2002: adapted to new test structure </li>
  + * </ul>
    */
   public class AxisTestServices
  -   extends JBossTestServices 
  -{    
  +   extends JBossTestServices
  +{
       /** where the beast is located */
       protected final static String axisServiceName = "jboss:service=Axis";
  -    
  +
       /** Creates new AxisTestServices */
       public AxisTestServices(String name) {
           super(name);
       }
  -    
  +
       /**
        * Gets the AxisServiceName
        */
       ObjectName getAxisServiceName() throws MalformedObjectNameException {
           return new ObjectName(axisServiceName);
       }
  -    
  +
       /**
        * Deploy a an axis web service
        */
       public void deployAxis(String name) throws Exception {
  -        String deployName = getDeployURL(name);
  -        invoke(getAxisServiceName(),
  -        "deploy",
  -        new Object[]{deployName},
  -        new String[]{"java.lang.String"});
  -        setDeployed(deployName);
  +      super.deploy(name);
       }
  -    
  +
       /**
        * Undeploy a web service
        */
       public void undeployAxis(String name) throws Exception {
  -        String deployName = getDeployURL(name);
  -        invoke(getAxisServiceName(),
  -        "undeploy",
  -        new Object[]{deployName},
  -        new String[]{"java.lang.String"});
  -        setUnDeployed(deployName);
  +      super.undeploy(name);
       }
  -    
  +
   }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to