I have created on action class and inside that action class i am getting some values from ApplicationResources.properties file,
//code snippet to get values through ApplicationResources.propeties MessageResources messageResources = getResources(request); String value = messageResources.getMessage("results.totalToDisplayPerPage"); String totalNumber = messageResources.getMessage("results.totalNumber");
I am using StrutsTestCase for unittesting my action class but when i run my test case i am getting values for value and totalNumber as null.
Can somebody tell me how to set ApplicationResources.properties file through StrutsTestCase.
My application is running properly in webserver which shows my web.xml and struts-config.xml files are correct and when i run inside webserver my application is able to read from ApplicationResources.properties file.