fromResources
Returns a reader for a directory on owner's class path, such as src/test/resources/fixtures.
Pass a class from the owning test source set so another module's resources with the same name cannot be selected. Resources packed in a JAR are not supported. The class path root itself is rejected: it resolves to the first entry, usually compiled classes rather than resources, so keep fixtures in a named folder.
Return
The reader.
Parameters
owner
A class loaded from the test resources' class path entry.
directory
The nonempty resource directory, relative to the class path root.
Throws
when directory names the class path root.
when the directory is not on the class path as a folder.