Class Classes

java.lang.Object
org.junit.internal.Classes

public class Classes extends Object
Miscellaneous functions dealing with classes.
  • Constructor Details

    • Classes

      @Deprecated public Classes()
      Deprecated.
      will be private soon.
      Do not instantiate.
  • Method Details

    • getClass

      public static Class<?> getClass(String className) throws ClassNotFoundException
      Returns Class.forName for className using the current thread's class loader. If the current thread does not have a class loader, falls back to the class loader for Classes.
      Parameters:
      className - Name of the class.
      Throws:
      ClassNotFoundException
    • getClass

      public static Class<?> getClass(String className, Class<?> callingClass) throws ClassNotFoundException
      Returns Class.forName for className 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