From: wisberg Date: Mon, 14 Nov 2005 14:43:59 +0000 (+0000) Subject: Removing 1.5 API String.contains(..) X-Git-Tag: V1_5_0RC1~193 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c0731dabc77601d0a4841a8736274afdcec20941;p=aspectj.git Removing 1.5 API String.contains(..) --- diff --git a/loadtime/testsrc/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java b/loadtime/testsrc/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java index 093a0125a..71a00ad2f 100644 --- a/loadtime/testsrc/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java +++ b/loadtime/testsrc/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java @@ -353,7 +353,10 @@ public class WeavingURLClassLoaderTest extends TestCase { fail("Expecting java.lang.NoClassDefFoundError"); } catch (Exception ex) { - assertTrue("Expecting java.lang.NoClassDefFoundError but caught " + ex,ex.getMessage().contains("java.lang.NoClassDefFoundError")); + String m = ex.getMessage(); + if (-1 == m.indexOf("java.lang.NoClassDefFoundError")) { + fail("Expecting java.lang.NoClassDefFoundError but caught " + ex); + } } }