aboutsummaryrefslogtreecommitdiffstats
path: root/taskdefs/testsrc
diff options
context:
space:
mode:
authorwisberg <wisberg>2002-12-18 17:04:12 +0000
committerwisberg <wisberg>2002-12-18 17:04:12 +0000
commit49c53178fe1d89b736d9c23331f0164b794e1f60 (patch)
treed2e49694d4752cfc9769ea12770cba69b16860e2 /taskdefs/testsrc
parentd5b8bb776ce6ef51420467fab5573803681e6685 (diff)
downloadaspectj-49c53178fe1d89b736d9c23331f0164b794e1f60.tar.gz
aspectj-49c53178fe1d89b736d9c23331f0164b794e1f60.zip
public constructor, better message reporting on failure
Diffstat (limited to 'taskdefs/testsrc')
-rw-r--r--taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java b/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java
index 035c0546a..7f7acfe79 100644
--- a/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java
+++ b/taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/AjcTaskTest.java
@@ -244,7 +244,13 @@ public class AjcTaskTest extends TestCase {
private void check(IMessageHolder holder, int num, IMessage.Kind kind) {
if (num != IGNORE) {
- assertEquals(num, holder.numMessages(kind, false));
+ int actual = holder.numMessages(kind, false);
+ if (num != actual) {
+ if (actual > 0) {
+ MessageUtil.print(System.err, holder, "expected " + num + " got " + actual);
+ }
+ assertEquals(num, actual);
+ }
}
}
}