Pretty new to Java and programming in general, doing a lot of reading and self-learning. I managed to create a Project with a good set of test classes that go out and test a specific Service that I also created, just a mock though.
I currently work with only 1 env, but in the very near future I'll have two, I want to simulate different tests on different environments and this is where I'm bit stuck.
What is the best infra to help me with properties for different envs, something that will integrate easily with a Jenkins pipeline? To clear out my question/need - I want a test to be able to run with different params on different envs, for QA it will be URL1, USER1, PASS1, and for SBX it will be URL2, USER2, PASS2...
If my question is not clear, please help me clarify it :) I'm using Java8, Junit5, and Gradle
Many thanks in advance!
P.S. - I've been reading on working with different envs with a properties file, I know about that, I'm asking if there's a better way?