The Test class of my application is extending “AbstractSingleSpringContextTests”.
We are loading all the Spring config files by overriding the “getConfigLocations” method.
All Spring files that I am loading are bundled inside JAR files (which are provided by other teams).
Hence the startup time for the integration tests is quite high. I am unable to set the default lazy load parameter to false since the spring config files are in JAR files.
- Is there way to programmatically set lazy load to true while running
the tests? - Is there a way to programmatically disallow certain beans defined in application-context.xml from loading?
Thanks a lot for your suggestions.
I have able to lazily load by following the steps specified in this link – http://batmat.net/blog/post/2008/01/13/How-to-load-a-XML-Spring-context-lazily-by-default