Browse Source

Clarified expected message

tags/V1_9_0_RC3
Andy Clement 6 years ago
parent
commit
e756597a31

+ 1
- 0
loadtime/testsrc/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java View File

@@ -356,6 +356,7 @@ public class WeavingURLClassLoaderTest extends TestCase {
invokeMain(clazz, new String[] { "LTWAspect" });
fail("Expecting java.lang.NoClassDefFoundError");
} catch (Exception ex) {
// Expecting: java.lang.NoClassDefFoundError: LTWAspect
String m = ex.getMessage();
if (-1 == m.indexOf("java.lang.NoClassDefFoundError")) {
fail("Expecting java.lang.NoClassDefFoundError but caught " + ex);

Loading…
Cancel
Save