001package org.junit.internal; 002 003import static java.lang.Thread.currentThread; 004 005/** 006 * Miscellaneous functions dealing with classes. 007 */ 008public class Classes { 009 /** 010 * Returns Class.forName for {@code className} using the current thread's class loader. 011 * 012 * @param className Name of the class. 013 * @throws ClassNotFoundException 014 */ 015 public static Class<?> getClass(String className) throws ClassNotFoundException { 016 return Class.forName(className, true, currentThread().getContextClassLoader()); 017 } 018}