Hi I got trouble reading resources fromn unit tests when using jigsaw in my project
If I do this:
MyClass.class.getResource("...");
it returns null because the resource is looked for within "${project.basedir}/target/test-classes". A workaround is to get the url and execute:
resource.getFile().replace("test-classes", "classes");
but this is a pretty dirty way in reading these resources... Is there any other clean way in doing this?