Our web app uses SystemPropertyPlaceholder to load property files depending on the value of a system property (see below)
The default setup for running it locally is sto
You could try to use depends-on attribute to have method invoking bean run before others
I am working on exactly the same problem now and hopefully found the way. You can call System.setProperty()
into the static initializer of your test case.
In Eclipse, right-click the JUnit test class, select Run As > Run Configurations..., then go to Arguments tab, and under VM Arguments, add in the system property entry, e.g. -Dcatalina.base=C:\programs\apache-tomcat-7.0.32