public class TestResourceClassLoader
extends java.lang.ClassLoader
ClassLoader
that looks for resources relative to the
specified resources directory, or the current working directory,
if none is specified.
Note: This only overrides the one method used to locate
DatabaseResourceBundles
, so it is not a
good candidate to stand on its own.
Connector developers may want to use this to implement unit tests.
Constructor and Description |
---|
TestResourceClassLoader(java.io.File resourceDir) |
Modifier and Type | Method and Description |
---|---|
java.net.URL |
getResource(java.lang.String name) |