One my the mock up testing files i have is loaded by
file = new TestData("src/main/resources/sample.json");
Unfortunately it is not found, while it is there.
In Maven project, is path i am using correct?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After the project is compiled or packaged, the resources which is stored at the “src/main/resources” will be collected and put to the default package.
You may see further details as the following path/file.
If you would like to access them, please use only their name, e.g. “sample.json”.
I hope this may help to clarify your issue.
Regards,
Charlee Ch.