test/jdk/tools/jpackage/JPackageMissingArgumentsTest.java
branchJDK-8200758-branch
changeset 57419 44c2481650ce
parent 57414 6eda749d3117
equal deleted inserted replaced
57415:50ac38fbd874 57419:44c2481650ce
    89         "--module", "com.hello/com.hello.Hello",
    89         "--module", "com.hello/com.hello.Hello",
    90     };
    90     };
    91 
    91 
    92     private static void validate(String output, String [] expected,
    92     private static void validate(String output, String [] expected,
    93            boolean single) throws Exception {
    93            boolean single) throws Exception {
    94         String[] result = output.split("\n");
    94         String[] result = JPackageHelper.splitAndFilter(output);
    95         if (single && result.length != 1) {
    95         if (single && result.length != 1) {
    96             System.err.println(output);
    96             System.err.println(output);
    97             throw new AssertionError("Invalid number of lines in output: "
    97             throw new AssertionError("Invalid number of lines in output: "
    98                     + result.length);
    98                     + result.length);
    99         }
    99         }