I have a Bean with a property “DBServer”; It has a default of “location1”;
During application startup;
Depending on the value of “DBServer”, different classes are instanciated.
I have 200 tests where this default setting is fine.
However, I would like to now test the alternative.
Is there a way to from within a junit test case to reset the default before the application context starts ?