The trunk code won't allow me to execute
org.mifos.framework.components.configuration.business.TestConfiguration
as a JUnit test within Eclipse because, perhaps,
test/org/mifos/config/resources/applicationConfiguration.default.properties
is not on the classpath.

I get an ExceptionInInitializerError from
org.mifos.config.ConfigLocale.load(), line 70 in ConfigLocale.java.

The attached patch removes the reference to the .default.properties file
in test/.../configurationFactory.xml. The .default.properties file
doesn't exist in the test/ dir structure, and isn't necessary for
one-off JUnit tests. This does not seem to affect ant test targets like
"run_test".

This probably isn't the most elegant solution, but I think it should
only affect one-off JUnit tests from within IDEs like Eclipse. Anyone
have a better idea?

-- 
Adam Monsen

Attachment: fix_cfg_single_eclipse_unit_test_run.patch.gz
Description: GNU Zip compressed data

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

Reply via email to