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:
parent
0a201610f9
commit
801f084e8e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue