DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27225>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27225 Additional class level method for ServletTestCase Summary: Additional class level method for ServletTestCase Product: Cactus Version: Nightly Build Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Framework AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I liked the in container testing provided by Cactus with auto deployment, but I would also like to use HTTPUnit with it and provide a generic way of going into the deployed application. The hardest part to doing this I think is getting the URL to connect to. I suggest adding something like this method or a variable like contextRoot to the class. protected String requestUrl(String relativeUrl) { StringBuffer url = request.getRequestURL(); url.delete(url.lastIndexOf("/"), url.length()); url.append(relativeUrl); return url.toString(); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
