----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 22:38 Subject: cvs commit: xml-axis/java/test/httpunit/src/test AdminTest.java HttpUnitTestBase.java JspTest.java JwsTest.java ServicesTest.java
> 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 httpunit.enabled=="true". > 6. added all the tests for GET error codes that are about to go into AxisServlet > > 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 java.net.HttpUrlConnection 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 httpunit. 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>"); > }