< prev index next >

test/sun/tools/jmap/BasicJMapTest.java

Print this page
rev 17272 : 8181391: remove explicit @build actions for the top level testlibary classes
Reviewed-by: duke


  22  */
  23 
  24 import static jdk.testlibrary.Asserts.assertTrue;
  25 import static jdk.testlibrary.Asserts.fail;
  26 
  27 import java.io.File;
  28 import java.util.Arrays;
  29 
  30 import jdk.test.lib.hprof.HprofParser;
  31 import jdk.testlibrary.JDKToolLauncher;
  32 import jdk.testlibrary.OutputAnalyzer;
  33 import jdk.testlibrary.ProcessTools;
  34 
  35 /*
  36  * @test
  37  * @summary Unit test for jmap utility
  38  * @key intermittent
  39  * @library /lib/testlibrary
  40  * @library /test/lib
  41  * @build jdk.testlibrary.*
  42  * @build jdk.test.lib.hprof.*
  43  * @build jdk.test.lib.hprof.model.*
  44  * @build jdk.test.lib.hprof.parser.*
  45  * @build jdk.test.lib.hprof.util.*
  46  * @run main/timeout=240 BasicJMapTest
  47  */
  48 public class BasicJMapTest {
  49 
  50     private static ProcessBuilder processBuilder = new ProcessBuilder();
  51 
  52     public static void main(String[] args) throws Exception {
  53         testHisto();
  54         testHistoLive();
  55         testFinalizerInfo();
  56         testClstats();
  57         testDump();
  58         testDumpLive();
  59     }
  60 
  61     private static void testHisto() throws Exception {
  62         OutputAnalyzer output = jmap("-histo");
  63         output.shouldHaveExitValue(0);
  64     }
  65 




  22  */
  23 
  24 import static jdk.testlibrary.Asserts.assertTrue;
  25 import static jdk.testlibrary.Asserts.fail;
  26 
  27 import java.io.File;
  28 import java.util.Arrays;
  29 
  30 import jdk.test.lib.hprof.HprofParser;
  31 import jdk.testlibrary.JDKToolLauncher;
  32 import jdk.testlibrary.OutputAnalyzer;
  33 import jdk.testlibrary.ProcessTools;
  34 
  35 /*
  36  * @test
  37  * @summary Unit test for jmap utility
  38  * @key intermittent
  39  * @library /lib/testlibrary
  40  * @library /test/lib
  41  * @build jdk.testlibrary.*




  42  * @run main/timeout=240 BasicJMapTest
  43  */
  44 public class BasicJMapTest {
  45 
  46     private static ProcessBuilder processBuilder = new ProcessBuilder();
  47 
  48     public static void main(String[] args) throws Exception {
  49         testHisto();
  50         testHistoLive();
  51         testFinalizerInfo();
  52         testClstats();
  53         testDump();
  54         testDumpLive();
  55     }
  56 
  57     private static void testHisto() throws Exception {
  58         OutputAnalyzer output = jmap("-histo");
  59         output.shouldHaveExitValue(0);
  60     }
  61 


< prev index next >