]> source.dussan.org Git - aspectj.git/commitdiff
Removing 1.5 API String.contains(..)
authorwisberg <wisberg>
Mon, 14 Nov 2005 14:43:59 +0000 (14:43 +0000)
committerwisberg <wisberg>
Mon, 14 Nov 2005 14:43:59 +0000 (14:43 +0000)
loadtime/testsrc/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java

index 093a0125a481773a9a0a19e34e1a54fbc4016595..71a00ad2f94acdb9f70f6c810fac291602c438a3 100644 (file)
@@ -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);
+            }
                }
        }