19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 package jdk.testlibrary;
25
26 import static jdk.testlibrary.Asserts.*;
27
28 import java.io.IOException;
29 import java.io.PrintStream;
30 import java.util.ArrayList;
31 import java.util.List;
32 import java.util.regex.Matcher;
33 import java.util.regex.Pattern;
34
35 /**
36 * Utility class for verifying output and exit value from a {@code Process}.
37 *
38 * @deprecated This class is deprecated. Use the one from
39 * {@code <root>/test/lib/share/classes/jdk/test/lib/process}
40 *
41 */
42 @Deprecated
43 public final class OutputAnalyzer {
44 private final OutputBuffer output;
45 private final String stdout;
46 private final String stderr;
47 private final int exitValue; // useless now. output contains exit value.
48
49 /**
50 * Create an OutputAnalyzer, a utility class for verifying output and exit
51 * value from a Process.
52 * <p>
53 * OutputAnalyzer should never be instantiated directly -
54 * use {@linkplain ProcessTools#executeProcess(ProcessBuilder)} instead
55 *
56 * @param process
57 * Process to analyze
58 * @throws IOException
59 * If an I/O error occurs.
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 package jdk.testlibrary;
25
26 import static jdk.testlibrary.Asserts.*;
27
28 import java.io.IOException;
29 import java.io.PrintStream;
30 import java.util.ArrayList;
31 import java.util.List;
32 import java.util.regex.Matcher;
33 import java.util.regex.Pattern;
34
35 /**
36 * Utility class for verifying output and exit value from a {@code Process}.
37 *
38 * @deprecated This class is deprecated. Use the one from
39 * {@code <root>/test/lib/jdk/test/lib/process}
40 *
41 */
42 @Deprecated
43 public final class OutputAnalyzer {
44 private final OutputBuffer output;
45 private final String stdout;
46 private final String stderr;
47 private final int exitValue; // useless now. output contains exit value.
48
49 /**
50 * Create an OutputAnalyzer, a utility class for verifying output and exit
51 * value from a Process.
52 * <p>
53 * OutputAnalyzer should never be instantiated directly -
54 * use {@linkplain ProcessTools#executeProcess(ProcessBuilder)} instead
55 *
56 * @param process
57 * Process to analyze
58 * @throws IOException
59 * If an I/O error occurs.
|