public class Classes extends Object
| Constructor and Description |
|---|
Classes()
Deprecated.
will be private soon.
|
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
getClass(String className)
Returns Class.forName for
className using the current thread's class loader. |
static Class<?> |
getClass(String className,
Class<?> callingClass)
Returns Class.forName for
className using the current thread's class loader. |
@Deprecated public Classes()
public static Class<?> getClass(String className) throws ClassNotFoundException
className using the current thread's class loader.
If the current thread does not have a class loader, falls back to the class loader for
Classes.className - Name of the class.ClassNotFoundExceptionpublic static Class<?> getClass(String className, Class<?> callingClass) throws ClassNotFoundException
className using the current thread's class loader.
If the current thread does not have a class loader, falls back to the class loader for the
passed-in class.className - Name of the class.callingClass - Class that is requesting a the classClassNotFoundExceptionCopyright © 2002–2025 JUnit. All rights reserved.