< prev index next >
test/jdk/tools/jpackage/share/ErrorTest.java
Print this page
*** 65,75 ****
};
private static final String EXP2 = "class was not specified nor was";
private static void validate(String output, String expected, boolean single)
throws Exception {
! String[] result = output.split("\n");
if (single && result.length != 1) {
System.err.println(output);
throw new AssertionError("Unexpected multiple lines of output: "
+ output);
}
--- 65,75 ----
};
private static final String EXP2 = "class was not specified nor was";
private static void validate(String output, String expected, boolean single)
throws Exception {
! String[] result = JPackageHelper.splitAndFilter(output);
if (single && result.length != 1) {
System.err.println(output);
throw new AssertionError("Unexpected multiple lines of output: "
+ output);
}
< prev index next >