public class TestUtil
extends java.lang.Object
| Constructor and Description |
|---|
TestUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getResourcePath(java.lang.Class<?> clazz,
java.lang.String name)
Return the path to a named resource.
|
static java.lang.String |
getResourcePath(java.lang.ClassLoader classLoader,
java.lang.String name)
Return the path to a named resource.
|
public static java.lang.String getResourcePath(java.lang.Class<?> clazz,
java.lang.String name)
clazz - the class to look relative tooname - the name of the resource, eg "cache.xml"public static java.lang.String getResourcePath(java.lang.ClassLoader classLoader,
java.lang.String name)
classLoader - the ClassLoader to look up resource inname - the name of the resource, eg "cache.xml"