We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04cc9b4 commit 8cdbe42Copy full SHA for 8cdbe42
test/lib/jdk/test/lib/process/OutputAnalyzer.java
@@ -224,6 +224,20 @@ public boolean stdoutContains(String expectedString) {
224
return getStdout().contains(expectedString);
225
}
226
227
+ /**
228
+ * Returns true if stderr contains the given string
229
+ */
230
+ public boolean stderrContains(String expectedString) {
231
+ return getStderr().contains(expectedString);
232
+ }
233
+
234
235
+ * Returns true if either stdout or stderr contains the given string
236
237
+ public boolean contains(String expectedString) {
238
+ return stdoutContains(expectedString) || stderrContains(expectedString);
239
240
241
/**
242
* Verify that the stdout and stderr contents of output buffer contains the string
243
*
0 commit comments