diff options
author | George Fraser <george@fivetran.com> | 2018-05-20 17:11:25 -0700 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2018-05-20 17:11:54 -0700 |
commit | a7548a86e0d0770eb0156d1596f38e5be8c84ab8 (patch) | |
tree | 6d9a04209be3262b2f7fc0aaa6dc8edb44c17ef6 /src/test | |
parent | e70f3f6772a8d9c099cca83209cc439e81b45948 (diff) | |
download | java-language-server-a7548a86e0d0770eb0156d1596f38e5be8c84ab8.zip |
Incremental using Pruner
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/javacs/JavaPresentationCompilerTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/javacs/JavaPresentationCompilerTest.java b/src/test/java/org/javacs/JavaPresentationCompilerTest.java index 0d7cf80..ee468a4 100644 --- a/src/test/java/org/javacs/JavaPresentationCompilerTest.java +++ b/src/test/java/org/javacs/JavaPresentationCompilerTest.java @@ -64,8 +64,8 @@ public class JavaPresentationCompilerTest { public void pruneMethods() { Pruner pruner = new Pruner(URI.create("/PruneMethods.java"), contents("/PruneMethods.java")); - String pruned = pruner.prune(6, 17); + pruner.prune(6, 17); String expected = contents("/PruneMethods_erased.java"); - assertThat(pruned, equalToIgnoringWhiteSpace(expected)); + assertThat(pruner.contents(), equalToIgnoringWhiteSpace(expected)); } } |