< prev index next >

test/sun/security/tools/jarsigner/warnings/Test.java

Print this page

        

*** 243,265 **** if (count > 0) { analyzer.shouldMatch(WARNING_OR_ERROR); } analyzer.shouldContain(JAR_SIGNED); } - - protected OutputAnalyzer keytool(String... cmd) throws Throwable { - return tool(KEYTOOL, cmd); - } - - protected OutputAnalyzer jarsigner(String... cmd) throws Throwable { - return tool(JARSIGNER, cmd); - } - - private OutputAnalyzer tool(String tool, String... args) throws Throwable { - List<String> cmd = new ArrayList<>(); - cmd.add(tool); - cmd.add("-J-Duser.language=en"); - cmd.add("-J-Duser.country=US"); - cmd.addAll(Arrays.asList(args)); - return ProcessTools.executeCommand(cmd.toArray(new String[cmd.size()])); - } } --- 243,248 ----
< prev index next >