diff options
author | George Fraser <george@fivetran.com> | 2019-01-03 21:36:41 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-01-03 21:36:41 -0800 |
commit | 1a4d6fb2051fd02f95bf52dcfbe997ef71ef7095 (patch) | |
tree | ced31623616c535b56bb74717ebcd6908b103401 /src/test | |
parent | 06e1f1188df371f9abfdab57d0e987ab4b8bc244 (diff) | |
download | java-language-server-1a4d6fb2051fd02f95bf52dcfbe997ef71ef7095.zip |
Simplify
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/javacs/PrunerTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/org/javacs/PrunerTest.java b/src/test/java/org/javacs/PrunerTest.java index fc1d163..24098be 100644 --- a/src/test/java/org/javacs/PrunerTest.java +++ b/src/test/java/org/javacs/PrunerTest.java @@ -11,28 +11,28 @@ public class PrunerTest { @Test public void pruneMethods() { - var actual = new Pruner(URI.create("/PruneMethods.java"), contents("PruneMethods.java")).prune(6, 19); + var actual = Pruner.prune(URI.create("/PruneMethods.java"), contents("PruneMethods.java"), 6, 19); var expected = contents("PruneMethods_erased.java"); assertThat(actual, equalToIgnoringWhiteSpace(expected)); } @Test public void pruneToEndOfBlock() { - var actual = new Pruner(URI.create("/PruneToEndOfBlock.java"), contents("PruneToEndOfBlock.java")).prune(4, 18); + var actual = Pruner.prune(URI.create("/PruneToEndOfBlock.java"), contents("PruneToEndOfBlock.java"), 4, 18); var expected = contents("PruneToEndOfBlock_erased.java"); assertThat(actual, equalToIgnoringWhiteSpace(expected)); } @Test public void pruneMiddle() { - var actual = new Pruner(URI.create("/PruneMiddle.java"), contents("PruneMiddle.java")).prune(4, 12); + var actual = Pruner.prune(URI.create("/PruneMiddle.java"), contents("PruneMiddle.java"), 4, 12); var expected = contents("PruneMiddle_erased.java"); assertThat(actual, equalToIgnoringWhiteSpace(expected)); } @Test public void pruneDot() { - var actual = new Pruner(URI.create("/PruneDot.java"), contents("PruneDot.java")).prune(3, 11); + var actual = Pruner.prune(URI.create("/PruneDot.java"), contents("PruneDot.java"), 3, 11); var expected = contents("PruneDot_erased.java"); assertThat(actual, equalToIgnoringWhiteSpace(expected)); } |