Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 58643 invoked by uid 500); 6 Sep 2002 22:14:14 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 58634 invoked from network); 6 Sep 2002 22:14:13 -0000 Message-ID: From: Tom Jordahl To: "'axis-dev@xml.apache.org'" Subject: RE: cvs commit: xml-axis/java/test/httpunit/src/test HttpUnitTest Base.java JwsTest.java ServicesTest.java Date: Fri, 6 Sep 2002 18:14:20 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Steve, I have never run the httpunit tests (lame!) but it seems to me that this is good stuff. What is blocking us from adding these tests to the 'all-tests' target? If not that, can we get Sam to add it to the nightly test runs? +1 on all the work you have done in this space!! -- Tom Jordahl -----Original Message----- From: stevel@apache.org [mailto:stevel@apache.org] Sent: Friday, September 06, 2002 4:41 PM To: xml-axis-cvs@apache.org Subject: cvs commit: xml-axis/java/test/httpunit/src/test HttpUnitTestBase.java JwsTest.java ServicesTest.java stevel 2002/09/06 13:41:29 Modified: java/test/httpunit build.xml java/test/httpunit/lib Tidy.jar httpunit.jar junit.jar java/test/httpunit/src/test HttpUnitTestBase.java JwsTest.java ServicesTest.java Log: some more tests Revision Changes Path 1.4 +3 -0 xml-axis/java/test/httpunit/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/xml-axis/java/test/httpunit/build.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- build.xml 4 Sep 2002 19:16:31 -0000 1.3 +++ build.xml 6 Sep 2002 20:41:28 -0000 1.4 @@ -88,11 +88,14 @@ + 1.2 +483 -542 xml-axis/java/test/httpunit/lib/Tidy.jar <> 1.2 +906 -627 xml-axis/java/test/httpunit/lib/httpunit.jar <> 1.2 +404 -424 xml-axis/java/test/httpunit/lib/junit.jar <> 1.2 +13 -1 xml-axis/java/test/httpunit/src/test/HttpUnitTestBase.java Index: HttpUnitTestBase.java =================================================================== RCS file: /home/cvs/xml-axis/java/test/httpunit/src/test/HttpUnitTestBase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- HttpUnitTestBase.java 23 Jul 2002 23:42:49 -0000 1.1 +++ HttpUnitTestBase.java 6 Sep 2002 20:41:29 -0000 1.2 @@ -118,9 +118,21 @@ String searchfor ) throws IOException, org.xml.sax.SAXException { + WebResponse response = makeRequest(request); + assertStringInBody(response,searchfor,request.getURL().toString()); + } + + /** + * make a request in a new session + * @param request request to make + * @return the response + * @throws IOException + * @throws SAXException + */ + protected WebResponse makeRequest(WebRequest request) throws IOException, SAXException { WebConversation session = new WebConversation(); WebResponse response=session.getResponse(request); - assertStringInBody(response,searchfor,request.getURL().toString()); + return response; } /** 1.2 +61 -0 xml-axis/java/test/httpunit/src/test/JwsTest.java Index: JwsTest.java =================================================================== RCS file: /home/cvs/xml-axis/java/test/httpunit/src/test/JwsTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- JwsTest.java 23 Jul 2002 23:42:49 -0000 1.1 +++ JwsTest.java 6 Sep 2002 20:41:29 -0000 1.2 @@ -74,4 +74,65 @@ WebRequest request = new GetMethodWebRequest(url+"/StockQuoteService.jws?wsdl"); assertStringInBody(request,"0); + } + + }