summaryrefslogtreecommitdiff
path: root/src/test/java/org/javacs/PrunerTest.java
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-08 20:05:17 -0800
committerGeorge Fraser <george@fivetran.com>2019-01-08 20:05:17 -0800
commit07a4b8b44b492d18cd759022395eb3a593f42f75 (patch)
treef8d9eb874d686ed5961791a8e0c1c0e6b55b35da /src/test/java/org/javacs/PrunerTest.java
parent727bd8341afc689c842385a234647b8f7b22de21 (diff)
downloadjava-language-server-07a4b8b44b492d18cd759022395eb3a593f42f75.zip
Reduce passing of contents
Diffstat (limited to 'src/test/java/org/javacs/PrunerTest.java')
-rw-r--r--src/test/java/org/javacs/PrunerTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/java/org/javacs/PrunerTest.java b/src/test/java/org/javacs/PrunerTest.java
index 9d649c2..3b6f017 100644
--- a/src/test/java/org/javacs/PrunerTest.java
+++ b/src/test/java/org/javacs/PrunerTest.java
@@ -10,35 +10,35 @@ public class PrunerTest {
@Test
public void pruneMethods() {
- var actual = Pruner.prune(resourceUri("PruneMethods.java"), contents("PruneMethods.java"), 6, 19);
+ var actual = Pruner.prune(resourceUri("PruneMethods.java"), 6, 19);
var expected = contents("PruneMethods_erased.java");
assertThat(actual, equalToIgnoringWhiteSpace(expected));
}
@Test
public void pruneToEndOfBlock() {
- var actual = Pruner.prune(resourceUri("PruneToEndOfBlock.java"), contents("PruneToEndOfBlock.java"), 4, 18);
+ var actual = Pruner.prune(resourceUri("PruneToEndOfBlock.java"), 4, 18);
var expected = contents("PruneToEndOfBlock_erased.java");
assertThat(actual, equalToIgnoringWhiteSpace(expected));
}
@Test
public void pruneMiddle() {
- var actual = Pruner.prune(resourceUri("PruneMiddle.java"), contents("PruneMiddle.java"), 4, 12);
+ var actual = Pruner.prune(resourceUri("PruneMiddle.java"), 4, 12);
var expected = contents("PruneMiddle_erased.java");
assertThat(actual, equalToIgnoringWhiteSpace(expected));
}
@Test
public void pruneDot() {
- var actual = Pruner.prune(resourceUri("PruneDot.java"), contents("PruneDot.java"), 3, 11);
+ var actual = Pruner.prune(resourceUri("PruneDot.java"), 3, 11);
var expected = contents("PruneDot_erased.java");
assertThat(actual, equalToIgnoringWhiteSpace(expected));
}
@Test
public void pruneWords() {
- var actual = Pruner.prune(resourceUri("PruneWords.java"), contents("PruneWords.java"), "word");
+ var actual = Pruner.prune(resourceUri("PruneWords.java"), "word");
var expected = contents("PruneWords_erased.java");
assertThat(actual, equalToIgnoringWhiteSpace(expected));
}