Package org.junit.internal
Class Classes
- java.lang.Object
-
- org.junit.internal.Classes
-
public class Classes extends Object
Miscellaneous functions dealing with classes.
-
-
Constructor Summary
Constructors Constructor Description Classes()
Deprecated.will be private soon.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Class<?>
getClass(String className)
Returns Class.forName forclassName
using the current thread's class loader.static Class<?>
getClass(String className, Class<?> callingClass)
Returns Class.forName forclassName
using the current thread's class loader.
-
-
-
Constructor Detail
-
Classes
@Deprecated public Classes()
Deprecated.will be private soon.Do not instantiate.
-
-
Method Detail
-
getClass
public static Class<?> getClass(String className) throws ClassNotFoundException
Returns Class.forName forclassName
using the current thread's class loader. If the current thread does not have a class loader, falls back to the class loader forClasses
.- Parameters:
className
- Name of the class.- Throws:
ClassNotFoundException
-
getClass
public static Class<?> getClass(String className, Class<?> callingClass) throws ClassNotFoundException
Returns Class.forName forclassName
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.- Parameters:
className
- Name of the class.callingClass
- Class that is requesting a the class- Throws:
ClassNotFoundException
- Since:
- 4.13
-
-