--- old/test/jdk/sun/tools/jps/JpsHelper.java 2018-09-05 14:30:51.000000000 -0700 +++ new/test/jdk/sun/tools/jps/JpsHelper.java 2018-09-05 14:30:50.000000000 -0700 @@ -184,10 +184,9 @@ * 35417 Main * 31103 org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar */ - public static void verifyJpsOutput(OutputAnalyzer output, String regex) throws Exception { + public static void verifyJpsOutput(OutputAnalyzer output, String regex) { output.shouldHaveExitValue(0); - int matchedCount = output.stdoutShouldMatchByLine(regex); - assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + regex); + output.stdoutShouldMatchByLine(regex); output.stderrShouldNotMatch("[E|e]xception"); output.stderrShouldNotMatch("[E|e]rror"); }