Class PowerMockUtils
java.lang.Object
org.powermock.core.PowerMockUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClassIterator(ClassLoader classLoader) Get an iterator of all classes loaded by the specific classloader.static voidprintClassesLoadedByClassloader(ClassLoader classLoader, boolean includeParent)
-
Constructor Details
-
PowerMockUtils
public PowerMockUtils()
-
-
Method Details
-
getClassIterator
public static Iterator<Class<?>> getClassIterator(ClassLoader classLoader) throws NoSuchFieldException, IllegalAccessException Get an iterator of all classes loaded by the specific classloader.- Parameters:
classLoader- the class loader for that iterator with all loaded classes should be created.- Returns:
- the iterator with all classes loaded by the given
classLoader - Throws:
NoSuchFieldExceptionIllegalAccessException
-
printClassesLoadedByClassloader
public static void printClassesLoadedByClassloader(ClassLoader classLoader, boolean includeParent) throws NoSuchFieldException, IllegalAccessException - Parameters:
classLoader- the class loader for that classes is printed.- Throws:
NoSuchFieldExceptionIllegalAccessException
-