You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by st...@apache.org on 2002/08/14 08:32:51 UTC

cvs commit: xml-axis/java/test/httpunit/src/test ServicesTest.java

stevel      2002/08/13 23:32:50

  Modified:    java/test/httpunit/src/test ServicesTest.java
  Log:
  add a new test and change expected behaviour of services/invalid?wsdl -the servlet code is trying to send back 404, even though 500 is coming back.
  
  Revision  Changes    Path
  1.2       +12 -2     xml-axis/java/test/httpunit/src/test/ServicesTest.java
  
  Index: ServicesTest.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/httpunit/src/test/ServicesTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ServicesTest.java	23 Jul 2002 23:42:49 -0000	1.1
  +++ ServicesTest.java	14 Aug 2002 06:32:50 -0000	1.2
  @@ -119,14 +119,24 @@
       }
   
       /**
  -     * @todo we get the error 500 here. Shouldnt a 404 be more correct?
  +     * A missing wsdl page should be a 404 error; though it is
  +     * returning 500 as of 2002-08-13
        * @throws Exception
        */
       public void testInvalidServiceWsdlRaisesError() throws Exception {
           WebRequest request = new GetMethodWebRequest(invalid_service+"?wsdl");
           // "The AXIS engine could not find a target service to invoke!");
  -        expectErrorCode(request,500);
  +        expectErrorCode(request,404);
   
  +    }
  +
  +    /**
  +     * test version call
  +     * @throws Exception
  +     */
  +    public void testVersion() throws Exception {
  +        WebRequest request = new GetMethodWebRequest(services+"/Version?wsdl");
  +        assertStringInBody(request,"<wsdl:definitions");
       }
   
   }