Skip to content

Commit

Permalink
Backport 7eb0372e55f23275b12470593adc97f1b79bc965
Browse files Browse the repository at this point in the history
  • Loading branch information
ktakakuri committed Jun 10, 2024
1 parent b50f8d9 commit 718ccf5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions jdk/test/javax/xml/jaxp/transform/8268457/SurrogateTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
Expand Down Expand Up @@ -129,12 +128,6 @@ public static boolean compareWithGold(String goldfile, String outputfile,
}

// Compare contents of golden file with test output list line by line.
public static boolean compareStringWithGold(String goldfile, String string)
throws IOException {
return Files.readAllLines(Paths.get(goldfile)).stream().collect(
Collectors.joining(System.getProperty("line.separator")))
.equals(string);
}
public static boolean compareLinesWithGold(String goldfile, List<String> lines)
throws IOException {
return Files.readAllLines(Paths.get(goldfile)).equals(lines);
Expand Down

0 comments on commit 718ccf5

Please sign in to comment.