Patches item #862378, was opened at 2003-12-18 10:41 Message generated for change (Comment added) made by jimweaver You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497984&aid=862378&group_id=61302
Category: None Group: None >Status: Pending >Resolution: Postponed Priority: 5 Submitted By: Simon Turner (simonturner) Assigned to: Nobody/Anonymous (nobody) Summary: Struts message-resources ResourceBundle class Initial Comment: TestContext has a setResourceBundleName() method to set the ResourceBundle that is used for asserts which take a property file key (eg: assertTitleEqualsKey()). Struts uses one or more property files to represent its key/value pairs. In order to make JWebUnit work with Struts, you therefore need a ResourceBundle class which will encapsulate the Struts properties (by reading the message-resources elements of struts-config.xml, and loading the default-Locale property files which are named there). Attached is my StrutsMessageResourceBundle. It may be used from a WebTestCase like: getTestContext().setResourceBundleName("com.burnsecs.test.util.StrutsMessageResourceBundle"); ---------------------------------------------------------------------- >Comment By: Jim Weaver (jimweaver) Date: 2004-09-20 12:29 Message: Logged In: YES user_id=619947 Had some trouble with classpath issues, presence of leading "/" in harcoded paths of class - could you submit a testcase for the bundle class that works within the jwebunit project? jim ---------------------------------------------------------------------- Comment By: Simon Turner (simonturner) Date: 2003-12-18 10:45 Message: Logged In: YES user_id=933904 Correction, use it like: getTestContext().setResourceBundleName("net.sourceforge.jwebunit.util.StrutsMessageResourceBundle"); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497984&aid=862378&group_id=61302 ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Jwebunit-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jwebunit-development
