1. using the ActionContext.setContext(): I have not personally used the ActionContext in testing actions, but I would imagine that if it works for one Action it should work all the time. What you need to ask yourself is if the value in the ActionContext are correctly set for all the actions, and if not initialize the map correctly in the setUp() of the individual JUnit tests. Instead of using ActionContext.setApplication(Context.getApplicationMap()) simply create your own Map and add only the parameters you need.
2. ResourceBundles: I do not believe that this is an Action level test. To test i18n correctly, you would want to test that the entire presentation layer behaves correctly. So, I would use a UI testing tool to exercise the static and dynamic content at the same time - which would need to be done with the container running. /Ian -- >From Down & Around, Inc. Innovative IT solutions Software Architecture * Design * Development ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ web: www.fdar.com email: [EMAIL PROTECTED] phone: 617.821.5430 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Being a little more specific > > >I'm not sure about using the ActionContext.setContext() for my action .... > > I setted up at my test class: > > ActionContext.setApplication(Context.getApplicationMap()); > > but is this correct? It worked for a single action, but what if I'm testing many > actions? Would this > mess everything? (mix context from diferent actions?) ... > > >Would be SUPER if I could force my test class to load config or resource files > that should be > loaded > >at my web module initialization, is it possible? (not required to make me > happy:) > > Now I need this to be happy :) ... in fact I need to load a ResourceBundle to > build i18n actions and > test them. > > I loaded: > return new PropertyResourceBundle( > Context.class.getClassLoader(). > getResourceAsStream("menu.properties") > ); > > but how can I set it to my action and enable the getText() method? > > thanks ... > > thanks in advance ... > + Samuel G. Mota > + [EMAIL PROTECTED] > + 55 (11) 4417 7093 > + Business Application Dpt. > + Netset Serviços em Tecnologia > + a Hypercom Company > + http://www.hypercom.com > > > > ------------------------------------------------------- > This SF.net email is sponsored by Dice.com. > Did you know that Dice has over 25,000 tech jobs available today? From > careers in IT to Engineering to Tech Sales, Dice has tech jobs from the > best hiring companies. http://www.dice.com/index.epl?rel_code4 > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork