axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: cvs commit: xml-axis/java/test/httpunit/src/test
Date Fri, 10 Jan 2003 07:02:47 GMT

----- Original Message -----
From: <>
To: <>
Sent: Thursday, January 09, 2003 22:38
Subject: cvs commit: xml-axis/java/test/httpunit/src/test

>   Log:
>   Changes to httpunit tests
>   1. layout aligned with rests of tests
>   2. build file aligned with rests of tests
>   3. lib file removed; you need httpunit in ant/lib, axis/lib or similar
>   4. tested against httpunit1.5.2
>   5. the compile/test only runs if httpunit.present is set and
>   6. added all the tests for GET error codes that are about to go into
>   Result: you can integrate httpunit with the rest of the tests, but only
if you set up the lib dirs and enable the test. The reason is that
SimpleAxisServer cannot handle the JSP tests, so this suite needs a real
webapp server.

One more thing. although I have tests that say what error code *and* error
text they expect, we can only check the error code in the tests because our
friend  is stopping HttpUnit from getting at the
response text for any error on a page that doesnt end in .html or .txt; a
long standing defect fixed in java1.4, but whose fix is not incorporated in

    public void testExceptionIsXML() throws Exception {
>           WebRequest request = new GetMethodWebRequest(url
>                   + "/EchoHeaders.jws");
>           request.setParameter("method", "throwAxisFault");
>           request.setParameter("param", "oops!");
>           expectErrorCode(request, 500,
>                   "<faultcode>soapenv:Server.userException</faultcode>");
>       }

View raw message