summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-08 20:18:49 -0800
committerGeorge Fraser <george@fivetran.com>2019-01-08 20:18:49 -0800
commita8d28f51dfc42c88eddbe1b5156f5b1be5aece83 (patch)
treea9c95f9d86332df2a375870cdaf96c58929c0889 /src/test
parent07a4b8b44b492d18cd759022395eb3a593f42f75 (diff)
downloadjava-language-server-a8d28f51dfc42c88eddbe1b5156f5b1be5aece83.zip
Use ForwardingJavaFileManager
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/javacs/SourceFileManagerTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/javacs/SourceFileManagerTest.java b/src/test/java/org/javacs/SourceFileManagerTest.java
index 523b6a4..64a35ac 100644
--- a/src/test/java/org/javacs/SourceFileManagerTest.java
+++ b/src/test/java/org/javacs/SourceFileManagerTest.java
@@ -21,8 +21,8 @@ public class SourceFileManagerTest {
private static SourceFileManager createSourceFileManager() {
var fileManager = new SourceFileManager();
try {
- fileManager.setLocationFromPaths(StandardLocation.SOURCE_PATH, List.of(src));
- fileManager.setLocationFromPaths(StandardLocation.CLASS_PATH, List.of(classes));
+ fileManager.setLocation(StandardLocation.SOURCE_PATH, List.of(src.toFile()));
+ fileManager.setLocation(StandardLocation.CLASS_PATH, List.of(classes.toFile()));
} catch (IOException e) {
throw new RuntimeException(e);
}