diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-02-16 23:33:43 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-02-16 23:45:28 +0100 |
commit | c096cbc65aeb883a886d70a6ae43ebea2de2a217 (patch) | |
tree | 6f7a1f83761317857d2c4ecf8458acef839789b1 /test/core/src | |
parent | 272b33a6ffb7c8697148b4e3de405dbaf59fedfa (diff) | |
download | lombok-c096cbc65aeb883a886d70a6ae43ebea2de2a217.tar.gz lombok-c096cbc65aeb883a886d70a6ae43ebea2de2a217.tar.bz2 lombok-c096cbc65aeb883a886d70a6ae43ebea2de2a217.zip |
Fixed versionmatching for our test framework.
Diffstat (limited to 'test/core/src')
-rw-r--r-- | test/core/src/lombok/AbstractRunTests.java | 4 | ||||
-rw-r--r-- | test/core/src/lombok/DirectoryRunner.java | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/test/core/src/lombok/AbstractRunTests.java b/test/core/src/lombok/AbstractRunTests.java index d044a39f..934c74c0 100644 --- a/test/core/src/lombok/AbstractRunTests.java +++ b/test/core/src/lombok/AbstractRunTests.java @@ -55,7 +55,7 @@ public abstract class AbstractRunTests { this.dumpActualFilesHere = findPlaceToDumpActualFiles(); } - public final FileTester createTester(final DirectoryRunner.TestParams params, final File file) throws IOException { + public final FileTester createTester(final DirectoryRunner.TestParams params, final File file, int version) throws IOException { ConfigurationKeysLoader.LoaderLoader.loadAllConfigurationKeys(); AssertionError directiveFailure = null; LombokTestSource sourceDirectives = null; @@ -64,6 +64,7 @@ public abstract class AbstractRunTests { if (sourceDirectives.isIgnore()) return null; if (!sourceDirectives.versionWithinLimit(params.getVersion())) return null; if (!sourceDirectives.versionWithinLimit(getClasspathVersion())) return null; + if (!sourceDirectives.versionWithinLimit(version)) return null; } catch (AssertionError ae) { directiveFailure = ae; } @@ -73,6 +74,7 @@ public abstract class AbstractRunTests { if (expected.isIgnore()) return null; if (!expected.versionWithinLimit(params.getVersion())) return null; + if (!expected.versionWithinLimit(version)) return null; final LombokTestSource sourceDirectives_ = sourceDirectives; final AssertionError directiveFailure_ = directiveFailure; diff --git a/test/core/src/lombok/DirectoryRunner.java b/test/core/src/lombok/DirectoryRunner.java index d4275b09..c9a5de31 100644 --- a/test/core/src/lombok/DirectoryRunner.java +++ b/test/core/src/lombok/DirectoryRunner.java @@ -155,12 +155,11 @@ public class DirectoryRunner extends Runner { private FileTester createTester(String fileName) throws IOException { File file = new File(params.getBeforeDirectory(), fileName); - switch (params.getCompiler()) { case DELOMBOK: - return new RunTestsViaDelombok().createTester(params, file); + return new RunTestsViaDelombok().createTester(params, file, params.getVersion()); case ECJ: - return new RunTestsViaEcj().createTester(params, file); + return new RunTestsViaEcj().createTester(params, file, params.getVersion()); default: case JAVAC: throw new UnsupportedOperationException(); |