aboutsummaryrefslogtreecommitdiff
path: root/test/core/src/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2014-05-12 15:08:55 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2014-05-21 01:44:45 +0200
commit8cfa421ce5b07ac4932e13035e71d8a52d45f085 (patch)
tree7473279fcaf5bbbd9fd246b62903f4351106ff4a /test/core/src/lombok
parent4996428ea12be7e381d76614e34a15ad1cc6d275 (diff)
downloadlombok-8cfa421ce5b07ac4932e13035e71d8a52d45f085.tar.gz
lombok-8cfa421ce5b07ac4932e13035e71d8a52d45f085.tar.bz2
lombok-8cfa421ce5b07ac4932e13035e71d8a52d45f085.zip
Added an error if @Delegate is used recursively.
Diffstat (limited to 'test/core/src/lombok')
-rw-r--r--test/core/src/lombok/AbstractRunTests.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/core/src/lombok/AbstractRunTests.java b/test/core/src/lombok/AbstractRunTests.java
index 2a04d21a..a1f535b4 100644
--- a/test/core/src/lombok/AbstractRunTests.java
+++ b/test/core/src/lombok/AbstractRunTests.java
@@ -215,8 +215,9 @@ public abstract class AbstractRunTests {
}
while (expectedIterator.hasNext()) {
- if (expectedIterator.next().isOptional()) continue;
- fail(String.format("[%s] Expected message '%s' but ran out of actual messages", name, expectedIterator.next()));
+ CompilerMessageMatcher next = expectedIterator.next();
+ if (next.isOptional()) continue;
+ fail(String.format("[%s] Expected message '%s' but ran out of actual messages", name, next));
}
if (acHasNext) fail(String.format("[%s] Unexpected message: %s", name, actualIterator.next()));
break;