Java Code Examples for jdk.testlibrary.Utils#fileAsList()

The following examples show how to use jdk.testlibrary.Utils#fileAsList() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestJcmdSanity.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    File file = new File(TEST_SRC, "help_help.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 2
Source File: TestJcmdSanity.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
private static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    File file = new File(TEST_SRC, "help_help.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 3
Source File: JpsHelper.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Compare jps output with a content in a file line by line
 */
public static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    String testSrc = System.getProperty("test.src", "?");
    File file = new File(testSrc, "usage.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 4
Source File: TestJcmdDefaults.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    File file = new File(TEST_SRC, "usage.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 5
Source File: TestJcmdSanity.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    File file = new File(TEST_SRC, "help_help.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 6
Source File: JpsHelper.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Compare jps output with a content in a file line by line
 */
public static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    String testSrc = System.getProperty("test.src", "?");
    File file = new File(testSrc, "usage.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 7
Source File: TestJcmdDefaults.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
private static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    File file = new File(TEST_SRC, "usage.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 8
Source File: TestJcmdSanity.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
private static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    File file = new File(TEST_SRC, "help_help.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 9
Source File: JpsHelper.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Compare jps output with a content in a file line by line
 */
public static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    String testSrc = System.getProperty("test.src", "?");
    File file = new File(testSrc, "usage.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 10
Source File: TestJcmdDefaults.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    File file = new File(TEST_SRC, "usage.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 11
Source File: JpsHelper.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Compare jps output with a content in a file line by line
 */
public static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    String testSrc = System.getProperty("test.src", "?");
    File file = new File(testSrc, "usage.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 12
Source File: JpsHelper.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Compare jps output with a content in a file line by line
 */
public static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    String testSrc = System.getProperty("test.src", "?");
    File file = new File(testSrc, "usage.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 13
Source File: TestJcmdDefaults.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    File file = new File(TEST_SRC, "usage.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 14
Source File: TestJcmdSanity.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    File file = new File(TEST_SRC, "help_help.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 15
Source File: JpsHelper.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Compare jps output with a content in a file line by line
 */
public static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    String testSrc = System.getProperty("test.src", "?");
    File file = new File(testSrc, "usage.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 16
Source File: TestJcmdDefaults.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
private static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    File file = new File(TEST_SRC, "usage.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 17
Source File: TestJcmdSanity.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    File file = new File(TEST_SRC, "help_help.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 18
Source File: JpsHelper.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Compare jps output with a content in a file line by line
 */
public static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    String testSrc = System.getProperty("test.src", "?");
    File file = new File(testSrc, "usage.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 19
Source File: TestJcmdDefaults.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
private static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    File file = new File(TEST_SRC, "usage.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}
 
Example 20
Source File: TestJcmdSanity.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
private static void verifyOutputAgainstFile(OutputAnalyzer output) throws IOException {
    File file = new File(TEST_SRC, "help_help.out");
    List<String> fileOutput = Utils.fileAsList(file);
    List<String> outputAsLines = output.asLines();
    assertTrue(outputAsLines.containsAll(fileOutput),
            "The ouput should contain all content of " + file.getAbsolutePath());
}