1package org.junit.internal; 2 3import static java.lang.Thread.currentThread; 4 5/** 6 * Miscellaneous functions dealing with classes. 7 */ 8public class Classes { 9 /** 10 * Returns Class.forName for {@code className} using the current thread's class loader. 11 * 12 * @param className Name of the class. 13 * @throws ClassNotFoundException 14 */ 15 public static Class<?> getClass(String className) throws ClassNotFoundException { 16 return Class.forName(className, true, currentThread().getContextClassLoader()); 17 } 18} 19