aboutsummaryrefslogtreecommitdiff
path: root/test/core
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2020-01-15 00:53:20 +0100
committerRoel Spilker <r.spilker@gmail.com>2020-01-20 14:10:15 +0100
commit091d14bd73e4da1d2b3e34f0648eaa63473c3b1c (patch)
treef993ecaf8ac6b67f9c1ae7236fcb2e7c34dc4977 /test/core
parent660a056240734659fe70fc9381024896becd5fba (diff)
downloadlombok-091d14bd73e4da1d2b3e34f0648eaa63473c3b1c.tar.gz
lombok-091d14bd73e4da1d2b3e34f0648eaa63473c3b1c.tar.bz2
lombok-091d14bd73e4da1d2b3e34f0648eaa63473c3b1c.zip
Config import: Allow imports in lombok.config
Diffstat (limited to 'test/core')
-rw-r--r--test/core/src/lombok/LombokTestSource.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/src/lombok/LombokTestSource.java b/test/core/src/lombok/LombokTestSource.java
index ba0aa972..d7d86a1b 100644
--- a/test/core/src/lombok/LombokTestSource.java
+++ b/test/core/src/lombok/LombokTestSource.java
@@ -41,6 +41,7 @@ import org.junit.Assert;
import lombok.core.LombokImmutableList;
import lombok.core.configuration.BubblingConfigurationResolver;
+import lombok.core.configuration.ConfigurationParser.Context;
import lombok.core.configuration.ConfigurationProblemReporter;
import lombok.core.configuration.ConfigurationResolver;
import lombok.core.configuration.StringConfigurationSource;
@@ -244,7 +245,7 @@ public class LombokTestSource {
}
};
- this.configuration = new BubblingConfigurationResolver(Collections.singleton(StringConfigurationSource.forString(conf, reporter, file.getAbsolutePath())));
+ this.configuration = new BubblingConfigurationResolver(Collections.singleton(StringConfigurationSource.forString(conf, reporter, Context.fromFile(file))));
this.formatPreferences = Collections.unmodifiableMap(formats);
}