From e756597a317915e01a3123deacc93abbc1092be1 Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Wed, 27 Sep 2017 13:59:24 -0700 Subject: [PATCH] Clarified expected message --- .../org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/loadtime/testsrc/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java b/loadtime/testsrc/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java index aa161cdc5..187de37ba 100644 --- a/loadtime/testsrc/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java +++ b/loadtime/testsrc/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java @@ -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); -- 2.39.5