org.junit.internal.Classes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of reactor-junit4 Show documentation
Show all versions of reactor-junit4 Show documentation
JUnit is a unit testing framework for Java, created by Erich Gamma and Kent Beck.
The newest version!
package org.junit.internal;
import static java.lang.Thread.currentThread;
/**
* Miscellaneous functions dealing with classes.
*/
public class Classes {
/**
* Returns Class.forName for {@code className} using the current thread's class loader.
*
* @param className Name of the class.
* @throws ClassNotFoundException
*/
public static Class> getClass(String className) throws ClassNotFoundException {
return Class.forName(className, true, currentThread().getContextClassLoader());
}
}