aboutsummaryrefslogtreecommitdiff
path: root/test/core/src/lombok/AbstractRunTests.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-03-18 23:56:57 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-03-18 23:56:57 +0100
commit0ecc23766f18418f28d09291455777d59537ccc3 (patch)
treed10dd239589872230c31e87a9e88a1017b610d40 /test/core/src/lombok/AbstractRunTests.java
parent5ec852b35b9f6e0f330098a302ce0d655f792ff7 (diff)
downloadlombok-0ecc23766f18418f28d09291455777d59537ccc3.tar.gz
lombok-0ecc23766f18418f28d09291455777d59537ccc3.tar.bz2
lombok-0ecc23766f18418f28d09291455777d59537ccc3.zip
Added a //version option to test files to restrict them to specific versions.
Diffstat (limited to 'test/core/src/lombok/AbstractRunTests.java')
-rw-r--r--test/core/src/lombok/AbstractRunTests.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/src/lombok/AbstractRunTests.java b/test/core/src/lombok/AbstractRunTests.java
index a3f52cdd..d278c5f3 100644
--- a/test/core/src/lombok/AbstractRunTests.java
+++ b/test/core/src/lombok/AbstractRunTests.java
@@ -72,7 +72,7 @@ public abstract class AbstractRunTests {
StringReader r = new StringReader(expectedFile);
BufferedReader br = new BufferedReader(r);
String firstLine = br.readLine();
- if (firstLine != null && firstLine.startsWith("//ignore")) return false;
+ if (firstLine != null && (firstLine.startsWith("//ignore") || params.shouldIgnoreBasedOnVersion(firstLine))) return false;
compare(
file.getName(),