< prev index next >

test/com/sun/tools/attach/ProviderTest.java

Print this page
rev 16783 : 8176176: fix @modules in jdk_svc tests
Reviewed-by: duke


  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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 import java.io.File;
  25 import jdk.testlibrary.OutputAnalyzer;
  26 import jdk.testlibrary.JDKToolLauncher;
  27 import jdk.testlibrary.ProcessTools;
  28 import com.sun.tools.attach.VirtualMachine;
  29 import com.sun.tools.attach.spi.AttachProvider;
  30 
  31 /*
  32  * @test
  33  * @bug 6173612 6273707 6277253 6335921 6348630 6342019 6381757
  34  * @summary Basic unit tests for the VM attach mechanism.
  35  * @modules jdk.jartool/sun.tools.jar

  36  * @library /lib/testlibrary
  37  * @modules java.management
  38  *          jdk.attach
  39  *          jdk.jartool/sun.tools.jar

  40  * @run build jdk.testlibrary.* SimpleProvider
  41  * @run main ProviderTest
  42  *
  43  * The test will attach and detach to/from the running Application.
  44  */
  45 public class ProviderTest {
  46 
  47     /*
  48      * The actual tests are in the nested class TestMain below.
  49      * The responsibility of this class is to:
  50      * 1. Build the needed jar.
  51      * 2. Run tests in ProviderTest.TestMain.
  52      */
  53     public static void main(String args[]) throws Throwable {
  54         try {
  55             buildJar();
  56             runTests();
  57         } catch (Throwable t) {
  58             System.out.println("TestProvider got unexpected exception: " + t);
  59             t.printStackTrace();
  60             throw t;
  61         }
  62     }
  63 




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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 import java.io.File;
  25 import jdk.testlibrary.OutputAnalyzer;
  26 import jdk.testlibrary.JDKToolLauncher;
  27 import jdk.testlibrary.ProcessTools;
  28 import com.sun.tools.attach.VirtualMachine;
  29 import com.sun.tools.attach.spi.AttachProvider;
  30 
  31 /*
  32  * @test
  33  * @bug 6173612 6273707 6277253 6335921 6348630 6342019 6381757
  34  * @summary Basic unit tests for the VM attach mechanism. The test will attach
  35  * and detach to/from the running Application.
  36  *
  37  * @library /lib/testlibrary
  38  * @modules jdk.attach

  39  *          jdk.jartool/sun.tools.jar
  40  *
  41  * @run build jdk.testlibrary.* SimpleProvider
  42  * @run main ProviderTest


  43  */
  44 public class ProviderTest {
  45 
  46     /*
  47      * The actual tests are in the nested class TestMain below.
  48      * The responsibility of this class is to:
  49      * 1. Build the needed jar.
  50      * 2. Run tests in ProviderTest.TestMain.
  51      */
  52     public static void main(String args[]) throws Throwable {
  53         try {
  54             buildJar();
  55             runTests();
  56         } catch (Throwable t) {
  57             System.out.println("TestProvider got unexpected exception: " + t);
  58             t.printStackTrace();
  59             throw t;
  60         }
  61     }
  62 


< prev index next >