These utilities are intended solely for usage within the JUnit framework itself. Any usage by external parties is not supported. Use at your own risk!
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ClassLoader | getClassLoader(Class<?>
the class for which to retrieve the class loader; never clazz)nullGet the |
| public static ClassLoader | |
| public static Optional | Returns: anOptional containing the URL of the class' location; never
null but potentially emptythe object for whose class the location should be retrieved object)Get the location from which the supplied object's class was loaded. |
| ClassLoaderUtils | back to summary |
|---|---|
| private ClassLoaderUtils() | |
| getClassLoader | back to summary |
|---|---|
| public static ClassLoader getClassLoader(Class<?> clazz) Get the
| |
| getDefaultClassLoader | back to summary |
|---|---|
| public static ClassLoader getDefaultClassLoader() | |
| getLocation | back to summary |
|---|---|
| public static Optional Get the location from which the supplied object's class was loaded. | |