Java Code Examples for jdk.testlibrary.OutputAnalyzer#shouldMatchByLine()
The following examples show how to use
jdk.testlibrary.OutputAnalyzer#shouldMatchByLine() .
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 dragonwell8_jdk with GNU General Public License v2.0 | 3 votes |
/** * Verifies the listed jcmd commands match a certain pattern. * * The output of the jcmd commands should look like: * VM.uptime * VM.flags * VM.system_properties * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchJcmdCommands(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_COMMAND_REGEX, "help", JCMD_COMMAND_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_COMMAND_REGEX); }
Example 2
Source File: TestJcmdSanity.java From TencentKona-8 with GNU General Public License v2.0 | 3 votes |
/** * Verifies the listed jcmd commands match a certain pattern. * * The output of the jcmd commands should look like: * VM.uptime * VM.flags * VM.system_properties * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchJcmdCommands(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_COMMAND_REGEX, "help", JCMD_COMMAND_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_COMMAND_REGEX); }
Example 3
Source File: TestJcmdSanity.java From openjdk-jdk8u with GNU General Public License v2.0 | 3 votes |
/** * Verifies the listed jcmd commands match a certain pattern. * * The output of the jcmd commands should look like: * VM.uptime * VM.flags * VM.system_properties * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchJcmdCommands(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_COMMAND_REGEX, "help", JCMD_COMMAND_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_COMMAND_REGEX); }
Example 4
Source File: TestJcmdSanity.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 3 votes |
/** * Verifies the listed jcmd commands match a certain pattern. * * The output of the jcmd commands should look like: * VM.uptime * VM.flags * VM.system_properties * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchJcmdCommands(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_COMMAND_REGEX, "help", JCMD_COMMAND_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_COMMAND_REGEX); }
Example 5
Source File: TestJcmdSanity.java From openjdk-jdk9 with GNU General Public License v2.0 | 3 votes |
/** * Verifies the listed jcmd commands match a certain pattern. * * The output of the jcmd commands should look like: * VM.uptime * VM.flags * VM.system_properties * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchJcmdCommands(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_COMMAND_REGEX, "help", JCMD_COMMAND_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_COMMAND_REGEX); }
Example 6
Source File: TestJcmdSanity.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
/** * Verifies the listed jcmd commands match a certain pattern. * * The output of the jcmd commands should look like: * VM.uptime * VM.flags * VM.system_properties * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchJcmdCommands(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_COMMAND_REGEX, "help", JCMD_COMMAND_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_COMMAND_REGEX); }
Example 7
Source File: TestJcmdSanity.java From hottub with GNU General Public License v2.0 | 3 votes |
/** * Verifies the listed jcmd commands match a certain pattern. * * The output of the jcmd commands should look like: * VM.uptime * VM.flags * VM.system_properties * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchJcmdCommands(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_COMMAND_REGEX, "help", JCMD_COMMAND_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_COMMAND_REGEX); }
Example 8
Source File: TestJcmdSanity.java From jdk8u_jdk with GNU General Public License v2.0 | 3 votes |
/** * Verifies the listed jcmd commands match a certain pattern. * * The output of the jcmd commands should look like: * VM.uptime * VM.flags * VM.system_properties * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchJcmdCommands(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_COMMAND_REGEX, "help", JCMD_COMMAND_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_COMMAND_REGEX); }
Example 9
Source File: TestJcmdDefaults.java From dragonwell8_jdk with GNU General Public License v2.0 | 2 votes |
/** * Verifies the listed processes match a certain pattern. * * The output should look like: * 12246 sun.tools.jcmd.JCmd * 24428 com.sun.javatest.regtest.MainWrapper /tmp/jtreg/jtreg-workdir/classes/sun/tools/jcmd/TestJcmdDefaults.jta * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchListedProcesses(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_LIST_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_LIST_REGEX); }
Example 10
Source File: TestJcmdDefaults.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * Verifies the listed processes match a certain pattern. * * The output should look like: * 12246 sun.tools.jcmd.JCmd * 24428 com.sun.javatest.regtest.MainWrapper /tmp/jtreg/jtreg-workdir/classes/sun/tools/jcmd/TestJcmdDefaults.jta * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchListedProcesses(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_LIST_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_LIST_REGEX); }
Example 11
Source File: TestJcmdDefaults.java From openjdk-jdk8u with GNU General Public License v2.0 | 2 votes |
/** * Verifies the listed processes match a certain pattern. * * The output should look like: * 12246 sun.tools.jcmd.JCmd * 24428 com.sun.javatest.regtest.MainWrapper /tmp/jtreg/jtreg-workdir/classes/sun/tools/jcmd/TestJcmdDefaults.jta * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchListedProcesses(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_LIST_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_LIST_REGEX); }
Example 12
Source File: TestJcmdDefaults.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 2 votes |
/** * Verifies the listed processes match a certain pattern. * * The output should look like: * 12246 sun.tools.jcmd.JCmd * 24428 com.sun.javatest.regtest.MainWrapper /tmp/jtreg/jtreg-workdir/classes/sun/tools/jcmd/TestJcmdDefaults.jta * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchListedProcesses(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_LIST_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_LIST_REGEX); }
Example 13
Source File: TestJcmdDefaults.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Verifies the listed processes match a certain pattern. * * The output should look like: * 12246 sun.tools.jcmd.JCmd * 24428 com.sun.javatest.regtest.MainWrapper /tmp/jtreg/jtreg-workdir/classes/sun/tools/jcmd/TestJcmdDefaults.jta * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchListedProcesses(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_LIST_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_LIST_REGEX); }
Example 14
Source File: TestJcmdDefaults.java From jdk8u-jdk with GNU General Public License v2.0 | 2 votes |
/** * Verifies the listed processes match a certain pattern. * * The output should look like: * 12246 sun.tools.jcmd.JCmd * 24428 com.sun.javatest.regtest.MainWrapper /tmp/jtreg/jtreg-workdir/classes/sun/tools/jcmd/TestJcmdDefaults.jta * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchListedProcesses(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_LIST_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_LIST_REGEX); }
Example 15
Source File: TestJcmdDefaults.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Verifies the listed processes match a certain pattern. * * The output should look like: * 12246 sun.tools.jcmd.JCmd * 24428 com.sun.javatest.regtest.MainWrapper /tmp/jtreg/jtreg-workdir/classes/sun/tools/jcmd/TestJcmdDefaults.jta * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchListedProcesses(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_LIST_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_LIST_REGEX); }
Example 16
Source File: TestJcmdDefaults.java From jdk8u_jdk with GNU General Public License v2.0 | 2 votes |
/** * Verifies the listed processes match a certain pattern. * * The output should look like: * 12246 sun.tools.jcmd.JCmd * 24428 com.sun.javatest.regtest.MainWrapper /tmp/jtreg/jtreg-workdir/classes/sun/tools/jcmd/TestJcmdDefaults.jta * * @param output The generated output from the jcmd. * @throws Exception */ private static void matchListedProcesses(OutputAnalyzer output) throws Exception { int matchedCount = output.shouldMatchByLine(JCMD_LIST_REGEX); assertGreaterThan(matchedCount , 0, "Found no lines matching pattern: " + JCMD_LIST_REGEX); }