facing an issue when the code is trying to access the System.getProperty() in Spring Test cases. working when setting the VM argument on the test case that is running, but to run each test case class, have to set the VM argument explicitly.
Is there a way to set the environment variables in the Spring before the application context loads.
Thanks in advance
System.setProperty(..)in a static block in test class