My JEE OpenLiberty integration tests should look up the port and application context root dynamically, such as:
String port = System.getProperty("http.port");
String context = System.getProperty("context.root");
This works fine when running the test from Intellij. Somehow (maven-failsafe-plugin?) the variables in my pom.xml
file make it into the VM and are available for lookup in the test.
Now when I trigger running tests in “dev mode” by pressing ENTER once the server has started both properties return null
.
How can I fix this?