axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject cvs commit: xml-axis-wsif/java/test/addressbook AddressBookTest.java
Date Mon, 01 Jul 2002 08:46:24 GMT
antelder    2002/07/01 01:46:24

  Modified:    java/test/addressbook AddressBookTest.java
  Log:
  Expand Addressbook testcase to do dynamic tests for all the providers
  (Which reveals bugs in the Java and native JMS providers)
  
  Revision  Changes    Path
  1.9       +27 -5     xml-axis-wsif/java/test/addressbook/AddressBookTest.java
  
  Index: AddressBookTest.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/test/addressbook/AddressBookTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AddressBookTest.java	24 Jun 2002 13:11:20 -0000	1.8
  +++ AddressBookTest.java	1 Jul 2002 08:46:24 -0000	1.9
  @@ -145,7 +145,22 @@
           doit("NativeJmsPort", "" ); 
       }
       public void testDynamicSOAP() {
  -        doitDyn("SOAPPort");
  +        doitDyn("SOAPPort", "soap");
  +    }
  +    public void testDynamicAxis() {
  +        doitDyn("SOAPPort", "axis");
  +    }
  +    public void testDynamicJava() {
  +        doitDyn("JavaPort", "java");
  +    }
  +    public void testDynamicSoapJms() {
  +        doitDyn("SOAPJMSPort", "soap");
  +    }
  +    public void testDynamicAxisJms() {
  +        doitDyn("SOAPJMSPort", "axis");
  +    }
  +    public void testDynamicNativeJms() {
  +        doitDyn("NativeJmsPort", "" ); 
       }
   
       private void doit(String portName, String protocol) {
  @@ -194,15 +209,22 @@
           }
       }
   
  -    private void doitDyn(String portName) {
  +    private void doitDyn(String portName, String protocol) {
           if (portName.indexOf("JMS") != -1 && !TestUtilities.areWeTesting("jms"))
               return;
  +
  +        if (protocol.equals("axis")) {
  +            WSIFServiceImpl.setDynamicWSIFProvider(
  +                "http://schemas.xmlsoap.org/wsdl/soap/",
  +                new WSIFDynamicProvider_ApacheAxis());
  +        }
  +
           try {
               WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
                   WSIFService service = factory.getService(wsdlLocation, null, // serviceNS

  -        null, // serviceName 
  -        "http://wsifservice.addressbook/", // portTypeNS 
  -    "AddressBook"); // portTypeName 
  +                null, // serviceName 
  +                "http://wsifservice.addressbook/", // portTypeNS 
  +                "AddressBook"); // portTypeName 
   
               service.mapType(
                   new javax.xml.namespace.QName(
  
  
  

Mime
View raw message