< prev index next >

test/jdk/sun/tools/jstatd/JstatdTest.java

Print this page
rev 51638 : [mq]: 8210112

*** 30,41 **** import jdk.test.lib.thread.ProcessThread; import static jdk.testlibrary.Asserts.*; import jdk.testlibrary.JDKToolLauncher; import jdk.testlibrary.Utils; ! import jdk.testlibrary.OutputAnalyzer; ! import jdk.testlibrary.ProcessTools; /** * The base class for tests of jstatd. * * The test sequence for TestJstatdDefaults for example is: --- 30,41 ---- import jdk.test.lib.thread.ProcessThread; import static jdk.testlibrary.Asserts.*; import jdk.testlibrary.JDKToolLauncher; import jdk.testlibrary.Utils; ! import jdk.test.lib.process.OutputAnalyzer; ! import jdk.test.lib.process.ProcessTools; /** * The base class for tests of jstatd. * * The test sequence for TestJstatdDefaults for example is:
*** 326,336 **** } finally { cleanUpThread(jstatdThread); } // Verify output from jstatd ! jdk.test.lib.process.OutputAnalyzer output = jstatdThread.getOutput(); assertTrue(output.getOutput().isEmpty(), "jstatd should get an empty output, got: " + Utils.NEW_LINE + output.getOutput()); assertNotEquals(output.getExitValue(), 0, "jstatd process exited with unexpected exit code"); --- 326,336 ---- } finally { cleanUpThread(jstatdThread); } // Verify output from jstatd ! OutputAnalyzer output = jstatdThread.getOutput(); assertTrue(output.getOutput().isEmpty(), "jstatd should get an empty output, got: " + Utils.NEW_LINE + output.getOutput()); assertNotEquals(output.getExitValue(), 0, "jstatd process exited with unexpected exit code");
< prev index next >