diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-10-29 23:11:21 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-10-29 23:11:21 +0100 |
commit | 7bd3851f68c8aadf6fcc9cd6c37fd1b4737ff906 (patch) | |
tree | 7f34d10d709b6af57fc1ed8f19c9e44f4f541407 /test/core/src | |
parent | d15d7228723ae5fa99036105c4df951ca9e40f1a (diff) | |
download | lombok-7bd3851f68c8aadf6fcc9cd6c37fd1b4737ff906.tar.gz lombok-7bd3851f68c8aadf6fcc9cd6c37fd1b4737ff906.tar.bz2 lombok-7bd3851f68c8aadf6fcc9cd6c37fd1b4737ff906.zip |
//ignore in files now counts even if the 'ignore' comment is followed by more text (such as the explanation for why it is being ignored).
Diffstat (limited to 'test/core/src')
-rw-r--r-- | test/core/src/lombok/AbstractRunTests.java | 3 | ||||
-rw-r--r-- | test/core/src/lombok/DirectoryRunner.java | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/test/core/src/lombok/AbstractRunTests.java b/test/core/src/lombok/AbstractRunTests.java index 676426f4..229d321a 100644 --- a/test/core/src/lombok/AbstractRunTests.java +++ b/test/core/src/lombok/AbstractRunTests.java @@ -69,7 +69,8 @@ public abstract class AbstractRunTests { StringReader r = new StringReader(expectedFile); BufferedReader br = new BufferedReader(r); - if ("//ignore".equals(br.readLine())) return false; + String firstLine = br.readLine(); + if (firstLine != null && firstLine.startsWith("//ignore")) return false; compare( file.getName(), diff --git a/test/core/src/lombok/DirectoryRunner.java b/test/core/src/lombok/DirectoryRunner.java index 93458310..59a24af7 100644 --- a/test/core/src/lombok/DirectoryRunner.java +++ b/test/core/src/lombok/DirectoryRunner.java @@ -131,6 +131,6 @@ public class DirectoryRunner extends Runner { BufferedReader reader = new BufferedReader(new FileReader(file)); String line = reader.readLine(); reader.close(); - return "//ignore".equals(line); + return line != null && line.startsWith("//ignore"); } } |