I have a file in /src/main/java which has the following line of code :
Test.class.getClassLoader().getResourceAsStream("test.json")
and the corresponding resource file is present in /src/main/resources...But we are thinking to remove this test.json from the classpath (src/main/resources) folder and we would include one more jar dependency and that jar would contain this test.json...I have tested with jar dependency and its working fine as it will be in the classPath..But the problem is we have some test cases ..these will fail if we dont include the jar dependency...Is it possible to run the test cases by putting this file in src/test/resources file..Without giving the jar dependencies..