org.jboss.test.util
Class Debug

java.lang.Object
  extended byorg.jboss.test.util.Debug

public class Debug
extends java.lang.Object

Various debugging utility methods available for use in unit tests


Constructor Summary
Debug()
           
 
Method Summary
static void displayClassInfo(java.lang.Class clazz, java.lang.StringBuffer results)
          Format a string buffer containing the Class, Interfaces, CodeSource, and ClassLoader information for the given object clazz.
static java.net.URL[] getClassLoaderURLs(java.lang.ClassLoader cl)
          Use reflection to access a URL[] getURLs or ULR[] getAllURLs method so that non-URLClassLoader class loaders, or class loaders that override getURLs to return null or empty, can provide the true classpath info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debug

public Debug()
Method Detail

displayClassInfo

public static void displayClassInfo(java.lang.Class clazz,
                                    java.lang.StringBuffer results)
Format a string buffer containing the Class, Interfaces, CodeSource, and ClassLoader information for the given object clazz.

Parameters:
clazz - the Class

getClassLoaderURLs

public static java.net.URL[] getClassLoaderURLs(java.lang.ClassLoader cl)
Use reflection to access a URL[] getURLs or ULR[] getAllURLs method so that non-URLClassLoader class loaders, or class loaders that override getURLs to return null or empty, can provide the true classpath info.