diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-03-18 23:56:57 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-03-18 23:56:57 +0100 |
commit | 0ecc23766f18418f28d09291455777d59537ccc3 (patch) | |
tree | d10dd239589872230c31e87a9e88a1017b610d40 /test/core/src/lombok/AbstractRunTests.java | |
parent | 5ec852b35b9f6e0f330098a302ce0d655f792ff7 (diff) | |
download | lombok-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.java | 2 |
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(), |