Re: Requirement of a new ServletRunner constructor in HttpUnit 1.7
"Wolfgang Fahl" <[email protected]> Mon, 17 Aug 2009 16:32:32 +0200
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Organization | BITPlan GmbH |
| Message-ID | <[email protected]> |
Dear Xiaofeng, thanks for your e-mail. you wrote: > BTW, I still can't pass all unit tests for having an failure as below: > > [java] Time: 11.954 > [java] There was 1 failure: > [java] 1) testSelfReferentialRedirect(com.meterware.httpunit.WebClientTest)junit.framework.AssertionFailedError: > Sh > ould have thrown a RecursiveRedirectionException > [java] at > com.meterware.httpunit.WebClientTest.testSelfReferentialRedirect(WebClientTest.java:652) > [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [java] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [java] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [java] at > com.meterware.httpunit.HttpUnitSuite.main(HttpUnitSuite.java:49) > [java] > > This failure exists in the truck, I am sorry I can't figure out the > problem, because it can't be reproduced in my Eclipse environment. I > am a bit confusing about this problem, would you take a look at the > same time? Thanks! I've tried to find out what the issue could be. You might want to debug WebWindow.shouldFollowRedirect and check why you do not get a HttpURLConnection.HTTP_MOVED_TEMP response code there despite it being set in the testcase. A minute ago I checked the latest trunk on my machine. I also had a few problem JUnit testcases. Two were related to my locale and another fix was simply not checked in also James Courtney hat pointed it out a few months ago. The one above is new to me. Please note that the HttpUnit 1.7 release was originally checked against a JDK 1.5 environment with JDK 1.3 and JDK 1.4 compatibility in mind. Personally I'd be in favor of moving to JDK 1.5 and JDK 1.6 with future versions. So far we have been reluctant to do this. To check your problem I'd need to at least know: - the Operating System you are running on - the JDK / Eclipse version you are using - other local information that might be relevant Also it's important how you set up the libraries/classpath. The checked in Eclipse version assumes that the CLASSPATH MAVEN_REPOSITORY variable is set and that the necessary libraries were checked out there. Yours Wolfgang BITPlan - smart solutions Pater-Delp-Str. 1, D-47877 Willich Schiefbahn Tel. +49 2154 811-480, Fax +49 2154 811-481 Web: http://www.bitplan.de bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548, Geschäftsführer: Wolfgang Fahl ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Httpunit-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/httpunit-develop