Change the assertion failure messages to provide more info

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@493682 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Niall Pemberton 2007-01-07 08:15:41 +00:00
parent 0a201610f9
commit 801f084e8e
1 changed files with 3 additions and 3 deletions

View File

@ -513,13 +513,13 @@ public class ClassUtilsTest extends TestCase {
ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
ClassLoader myClassLoader = ClassUtilsTest.class.getClassLoader();
if (!(myClassLoader instanceof URLClassLoader)) {
fail("Need a better test set up.");
fail("ClassUtilsTest ClassLoader = " + (myClassLoader == null ? null : myClassLoader.getClass().getName()));
}
if (!(systemClassLoader instanceof URLClassLoader)) {
fail("Need a better test set up.");
fail("System ClassLoader = " + (systemClassLoader == null ? null : systemClassLoader.getClass().getName()));
}
if (!myClassLoader.equals(systemClassLoader)) {
fail("Need a better test set up?");
fail("ClassUtilsTest= " + myClassLoader + " System=" + systemClassLoader);
}
URLClassLoader urlScl = (URLClassLoader) myClassLoader;
return URLClassLoader.newInstance(urlScl.getURLs(), null);