Re: Setting environment variables in-memory for unit tests

2022-02-13 Thread Nuwan Jayawardene
Hi all, > My issue is that I could not find a way to include the special characters > into the XML element name as follows; > <$SYSTEM:SOAP_SERVICE_TEST>value > I'd made an oversight and confused the dollar notation [that's supposed to be] included in the configuration file with how environment va

Re: Setting environment variables in-memory for unit tests

2022-02-12 Thread Nuwan Jayawardene
Hi all, After trying different external libraries [1 ][2 ] and Junit extensions [ 3 ] to vary

Re: Setting environment variables in-memory for unit tests

2021-09-12 Thread Nuwan Jayawardene
Noted Nadeeshaan. I'll check it out. Kind regards. On Sun, Sep 12, 2021 at 9:41 PM Nadeeshaan Gunasinghe < nadeeshaangunasin...@gmail.com> wrote: > Not really, the shell command does not aware of the particular debug > configuration. Although, if you set the maven configuration, as I mentione

Re: Setting environment variables in-memory for unit tests

2021-09-12 Thread Nadeeshaan Gunasinghe
Not really, the shell command does not aware of the particular debug configuration. Although, if you set the maven configuration, as I mentioned earlier, that should work for both scenarios. Cheers, *Nadeeshaan Gunasinghe* Technical Lead, WSO2 Inc. http://wso2.com +94770596754 | nadeesh...@wso2.c

Re: Setting environment variables in-memory for unit tests

2021-09-12 Thread Nuwan Jayawardene
If it's run in memory, sure I think that'll work too. However, would it work when a mvn clean install is run separately from a terminal? On Sun, Sep 12, 2021 at 8:08 PM Nadeeshaan Gunasinghe < nadeeshaangunasin...@gmail.com> wrote: > Hi Nuwan, > > In that regard, I would like to suggest that w

Re: Setting environment variables in-memory for unit tests

2021-09-12 Thread Nadeeshaan Gunasinghe
Hi Nuwan, In that regard, I would like to suggest that we edit the editor's debug configurations without any intervention of the code as a best practice at the development time. WDYT? Cheers, *Nadeeshaan Gunasinghe* Technical Lead, WSO2 Inc. http://wso2.com +94770596754 | nadeesh...@wso2.com | S

Re: Setting environment variables in-memory for unit tests

2021-09-12 Thread Nuwan Jayawardene
Hi Nadeeshaan, this looks interesting. I'll check it out. I was trying to do it programmatically so it can be manipulated through the code itself so it's convenient when running tests individually via IntelliJ. Regards On Sun, Sep 12, 2021 at 2:57 PM Nadeeshaan Gunasinghe < nadeeshaangunasin.

Re: Setting environment variables in-memory for unit tests

2021-09-12 Thread Nadeeshaan Gunasinghe
Hi Nuwan, If you are looking for a way for setting the environment variables for the tests (please correct me if I haven't understood correctly), you can set it up in your maven configurations. If that's what you are looking for, please try [1]. [1] https://stackoverflow.com/questions/11078863/ho

Setting environment variables in-memory for unit tests

2021-09-12 Thread Nuwan Jayawardene
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+Paramet