]> source.dussan.org Git - aspectj.git/commitdiff
Stupid bloody tests that don't tell you why they failed, I HATE THEM - fixed this...
authoraclement <aclement>
Wed, 4 Jun 2008 00:33:09 +0000 (00:33 +0000)
committeraclement <aclement>
Wed, 4 Jun 2008 00:33:09 +0000 (00:33 +0000)
tests/java5/ataspectj/ataspectj/PerClauseTest.java

index 34d9fb5c905b28cd684edc62e5d0c62e8e75ad6b..a7f98199743219eb17e356a82b433adf40740388 100644 (file)
@@ -180,7 +180,8 @@ public class PerClauseTest extends TestCase {
     public void testPerTypeWithin() {
         assertTrue(Aspects.hasAspect(PerClauseTestAspects.TestAspectPTW.class, PTW1.class));
         assertTrue(Aspects.hasAspect(PerClauseTestAspects.TestAspectPTW.class, PTW2.class));
-        assertFalse(Aspects.hasAspect(PerClauseTestAspects.TestAspectPTW.class, PTWNoMatch.class));
+        assertFalse("Should not have found an aspect instance of 'PerClauseTestAspects.TestAspectPTW' attached to type 'PTWNoMatch'",
+                    Aspects.hasAspect(PerClauseTestAspects.TestAspectPTW.class, PTWNoMatch.class));
 
         PTW1.foo();
         PTW2.foo();