In some unit tests initially we used such resource links for java.net.URL
class
"https://<host name>/<project name>/pom.xml"
for loading test data. However, it doesn't work during offline development.
How it's possible to specify relative from test/java
folder URL in file system?
I tried "file:///../pom.xml"
but it brings to exception
java.io.FileNotFoundException: \..\pom.xml (The system cannot find the file specified)
If I specify "file://..\\pom.xml"
I receive
Caused by: java.net.UnknownHostException: ..