Hello all,
I have a properties file wich will contain the adresses of the servers that i will send requests to . The properties file will have the good values only when packaging because
maven will fill them thanks to its profiles.
So my file looks like this:
travelfusion.ip=${travelfusion.ip}
amadeus.ip=${amadeus.ip}.
So far all is good, but the problem is that i am writing a
unit test which must read the ip from the properties file. the test fails because it can not connect to the server because the ${travelfusion.ip} will be returned and not a good value. i am launching the unit test from Eclipse so maven is not in the process and the variables are not replaced by good values.
Must i launch unit tests only by maven? or there is a way to keep the variables in the properties file and writing unit tests which can read good values from the properties file?
Thank you in advance,