I have an application with two different components. One is core (component A) and other has all file resources (component B). When I run application A runs and fetch files like xml, xslt, xsd from other component B. We have recently upgraded to latest version of spring 5 and open jdk 11. I am facing file not found exceptions after version upgrade while running junit tests of A. We are setting user.dir to switch current directory but still it is trying to check in A's folder structure.
Uses following
System.setProperty("user.dir", systemUserDir + "/../ComponentB/src/main/resources");
then we have this property mentioned properties file that we append to above
TEST.Test.XSLTFile=document/business/Test.xslt
So it should ideally search in ComponentB path but it tries searching file in Component A path.