diff options
author | wisberg <wisberg> | 2005-11-14 14:43:59 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2005-11-14 14:43:59 +0000 |
commit | c0731dabc77601d0a4841a8736274afdcec20941 (patch) | |
tree | 5c3c7dd8c27ae7ed19835f36978c60b800603d58 /loadtime | |
parent | 4b8bed7cff98b2aca5586e604a138c3674453c90 (diff) | |
download | aspectj-c0731dabc77601d0a4841a8736274afdcec20941.tar.gz aspectj-c0731dabc77601d0a4841a8736274afdcec20941.zip |
Removing 1.5 API String.contains(..)
Diffstat (limited to 'loadtime')
-rw-r--r-- | loadtime/testsrc/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
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); + } } } |