diff options
author | Roel Spilker <r.spilker@gmail.com> | 2020-01-16 15:02:00 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2020-01-20 14:10:33 +0100 |
commit | bb4fb7d220da8d49aea93087b92dcb8adbbb7f99 (patch) | |
tree | 4859b2e9d08c3de8ec0d56855adb97c0f43b9a85 /test | |
parent | 1444d6dfbf88ac24c93882574c4ae5b6cce4c6b1 (diff) | |
download | lombok-bb4fb7d220da8d49aea93087b92dcb8adbbb7f99.tar.gz lombok-bb4fb7d220da8d49aea93087b92dcb8adbbb7f99.tar.bz2 lombok-bb4fb7d220da8d49aea93087b92dcb8adbbb7f99.zip |
Config import: move responsibilities
Diffstat (limited to 'test')
-rw-r--r-- | test/core/src/lombok/LombokTestSource.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/core/src/lombok/LombokTestSource.java b/test/core/src/lombok/LombokTestSource.java index 125c70b5..c924b8f7 100644 --- a/test/core/src/lombok/LombokTestSource.java +++ b/test/core/src/lombok/LombokTestSource.java @@ -42,9 +42,10 @@ import org.junit.Assert; import lombok.core.LombokImmutableList; import lombok.core.configuration.BubblingConfigurationResolver; import lombok.core.configuration.ConfigurationFile; +import lombok.core.configuration.ConfigurationParser; import lombok.core.configuration.ConfigurationProblemReporter; import lombok.core.configuration.ConfigurationResolver; -import lombok.core.configuration.StringConfigurationSource; +import lombok.core.configuration.SingleConfigurationSource; public class LombokTestSource { private final File file; @@ -244,8 +245,7 @@ public class LombokTestSource { Assert.fail("Problem on directive line: " + problem + " at conf line #" + lineNumber + " (" + line + ")"); } }; - - this.configuration = new BubblingConfigurationResolver(Collections.singleton(StringConfigurationSource.forString(conf, reporter, ConfigurationFile.fromFile(file)))); + this.configuration = new BubblingConfigurationResolver(Collections.singleton(SingleConfigurationSource.parse(ConfigurationFile.fromCharSequence(file.getAbsoluteFile().getPath(), conf, ConfigurationFile.getLastModifiedOrMissing(file)), new ConfigurationParser(reporter)))); this.formatPreferences = Collections.unmodifiableMap(formats); } |