I just committed a big change that removed all of the duplicated configuration files in the 'test' directory. This includes duplicate versions of the following files:
struts-config.xml web.xml validation.xml validator-rules.xml *<message>*.properties tiles-defs.xml configurationFactory.xml You should note that the ant test runner (run_test, run_test_parallel_2, etc.) includes the additional classpath element "mifos/build/src_pkg", which helps MockStrutsTestCase pick up the web.xml, struts-config.xml and other appropriate configuration files. You will probably want to add this to your IDE classpath if you use it to run tests. Instructions on where to add struts-config related configuration are included in the common 'struts-config.xml'. Please review this and let me know if you have any questions about how things are set up. MifosMockStrutsTestCase is in charge of loading the appropriate configuration elements (based on package structure) - most of the important changes are contained in this file. Note, making this change added about 15% more time to the full test suite. At first it was 50%, but I was able to make some tweaks to increase performance (using multiple struts-config and loading only the required ones for each test). Hopefully the advantages of factoring out duplicated code will outweigh the additional time costs - apologies in advance. Tom Bostelmann
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
