Hi all, I've been working on writing unit tests for a feature that extracts a prefixed variable from a synapse.xml config during runtime and populates it with a preset environment variable. It's similar in functionality to what's mentioned here: https://docs.wso2.com/display/EI660/Injecting+Parameters+as+Environment+Variables .
I'm reaching out to verify if there's a way to set environment variables in-memory with Java so that it is picked up when the unit test is being run. I found an answer here: https://stackoverflow.com/a/7201825/7838048, however unfortunately it doesn't seem to work as it retrieves a null value when the code is debugged. Would appreciate some thoughts on this. Kind regards -- *Nuwan Jayawardene* Assistant Lecturer, Informatics Institute of Technology (IIT). Research Assistant, University of Moratuwa https://www.linkedin.com/m/in/nuwanjaya