< prev index next >

test/java/lang/ProcessHandle/TreeTest.java

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


  30 import java.util.List;
  31 import java.util.Optional;
  32 import java.util.Set;
  33 import java.util.concurrent.ConcurrentHashMap;
  34 import java.util.concurrent.CountDownLatch;
  35 import java.util.concurrent.ExecutionException;
  36 import java.util.concurrent.TimeUnit;
  37 import java.util.stream.Collectors;
  38 import java.util.stream.Stream;
  39 
  40 import jdk.test.lib.Utils;
  41 import org.testng.Assert;
  42 import org.testng.TestNG;
  43 import org.testng.annotations.Test;
  44 
  45 /*
  46  * @test
  47  * @library /test/lib
  48  * @modules java.base/jdk.internal.misc
  49  *          jdk.management
  50  * @build jdk.test.lib.Utils
  51  * @run testng/othervm TreeTest
  52  * @summary Test counting and JavaChild.spawning and counting of Processes.
  53  * @author Roger Riggs
  54  */
  55 public class TreeTest extends ProcessUtil {
  56     // Main can be used to run the tests from the command line with only testng.jar.
  57     @SuppressWarnings("raw_types")
  58     public static void main(String[] args) {
  59         Class<?>[] testclass = {TreeTest.class};
  60         TestNG testng = new TestNG();
  61         testng.setTestClasses(testclass);
  62         testng.run();
  63     }
  64 
  65     /**
  66      * Test counting and spawning and counting of Processes.
  67      */
  68     @Test
  69     public static void test1() {
  70         final int MAXCHILDREN = 2;




  30 import java.util.List;
  31 import java.util.Optional;
  32 import java.util.Set;
  33 import java.util.concurrent.ConcurrentHashMap;
  34 import java.util.concurrent.CountDownLatch;
  35 import java.util.concurrent.ExecutionException;
  36 import java.util.concurrent.TimeUnit;
  37 import java.util.stream.Collectors;
  38 import java.util.stream.Stream;
  39 
  40 import jdk.test.lib.Utils;
  41 import org.testng.Assert;
  42 import org.testng.TestNG;
  43 import org.testng.annotations.Test;
  44 
  45 /*
  46  * @test
  47  * @library /test/lib
  48  * @modules java.base/jdk.internal.misc
  49  *          jdk.management

  50  * @run testng/othervm TreeTest
  51  * @summary Test counting and JavaChild.spawning and counting of Processes.
  52  * @author Roger Riggs
  53  */
  54 public class TreeTest extends ProcessUtil {
  55     // Main can be used to run the tests from the command line with only testng.jar.
  56     @SuppressWarnings("raw_types")
  57     public static void main(String[] args) {
  58         Class<?>[] testclass = {TreeTest.class};
  59         TestNG testng = new TestNG();
  60         testng.setTestClasses(testclass);
  61         testng.run();
  62     }
  63 
  64     /**
  65      * Test counting and spawning and counting of Processes.
  66      */
  67     @Test
  68     public static void test1() {
  69         final int MAXCHILDREN = 2;


< prev index next >