Package org.nuxeo.runtime.test
Class TargetResourceLocator
- java.lang.Object
-
- org.nuxeo.runtime.test.TargetResourceLocator
-
public class TargetResourceLocator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Path
basepath
protected ClassLoader
loader
-
Constructor Summary
Constructors Constructor Description TargetResourceLocator(Class<?> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Path
basepath(Class<?> clazz)
protected int
depthOfClass(String name)
Path
getBasepath()
URL
getTargetTestResource(String name)
protected Path
toPath(URI uri)
-
-
-
Field Detail
-
loader
protected final ClassLoader loader
-
basepath
protected final Path basepath
-
-
Constructor Detail
-
TargetResourceLocator
public TargetResourceLocator(Class<?> clazz)
-
-
Method Detail
-
getBasepath
public Path getBasepath()
-
depthOfClass
protected int depthOfClass(String name)
-
getTargetTestResource
public URL getTargetTestResource(String name) throws IOException
- Throws:
IOException
-
toPath
protected Path toPath(URI uri) throws IOException
- Throws:
IOException
-
-