Hi All
When writing JUnit tests that need to read config files from WEB-INF (eg – unit testing a Spring application that needs to read applicationContext.xml, or an iBatis module that needs SqlMapConfig.xml), how do people normally configure their runtime classpath? I find myself creating a ‘Run’ configuration with WebRoot/WEB-INF manually added to it. But then I have to use this configuration to run any unit tests – I can’t just right click and say ‘Run as Junit Test’.
Anyone have a nice solution to this or am I missing something obvious?
Regards
Neil Canham