Package org.junit.internal
Class Classes
java.lang.Object
org.junit.internal.Classes
Miscellaneous functions dealing with classes.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Classes
Deprecated.will be private soon.Do not instantiate.
-
-
Method Details
-
getClass
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
-