Skip to content

Commit 6bcde64

Browse files
committed
test: make all unparser test helper methods private
1 parent 79b0a27 commit 6bcde64

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/test/java/VariationUnparserTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class VariationUnparserTest {
2222
private final static String treeSuffix = ".txt";
2323
private final static String diffSuffix = ".diff";
2424

25-
protected static Stream<Path> findTestCases(Path dir, String filenameSuffix) throws IOException {
25+
private static Stream<Path> findTestCases(Path dir, String filenameSuffix) throws IOException {
2626
return Files
2727
.list(dir)
2828
.filter(filename -> filename.getFileName().toString().endsWith(filenameSuffix));
@@ -88,12 +88,12 @@ public void testDiffUnparse(Path testCasePath) throws IOException, DiffParseExce
8888
assertEqualDiff(original, unparsed4);
8989
}
9090

91-
public static String parseUnparseTree(Path path, VariationDiffParseOptions option) throws IOException, DiffParseException {
91+
private static String parseUnparseTree(Path path, VariationDiffParseOptions option) throws IOException, DiffParseException {
9292
VariationTree<DiffLinesLabel> tree = VariationTree.fromFile(path, option);
9393
return VariationUnparser.variationTreeUnparser(tree);
9494
}
9595

96-
public static String parseUnparseDiff(Path path, VariationDiffParseOptions option) throws IOException, DiffParseException {
96+
private static String parseUnparseDiff(Path path, VariationDiffParseOptions option) throws IOException, DiffParseException {
9797
VariationDiff<DiffLinesLabel> diff = VariationDiff.fromFile(path, option);
9898
return VariationUnparser.variationDiffUnparser(diff);
9999
}

0 commit comments

Comments
 (0)