< prev index next >

test/sun/jvmstat/monitor/VmIdentifier/VmIdentifierCreateResolve.java

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


   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  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 /*
  25  * @test
  26  * @bug 4990825
  27  * @modules jdk.internal.jvmstat/sun.jvmstat.monitor
  28  * @summary test that VmIdentifier objects get created as expected



  29  */
  30 
  31 import java.io.*;
  32 import java.net.*;
  33 import javax.xml.parsers.*;
  34 import org.xml.sax.*;
  35 import org.xml.sax.helpers.DefaultHandler;
  36 import sun.jvmstat.monitor.*;
  37 
  38 public class VmIdentifierCreateResolve {
  39 
  40     public static void main(String args[]) throws Exception {
  41         File testcases =
  42                 new File(System.getProperty("test.src", "."), "testcases");
  43 
  44         SAXParserFactory spf = SAXParserFactory.newInstance();
  45         SAXParser sp = spf.newSAXParser();
  46         DefaultHandler dh = new VmIdentifierTestHandler();
  47         sp.parse(testcases, dh);
  48     }




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  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 /*
  25  * @test
  26  * @bug 4990825

  27  * @summary test that VmIdentifier objects get created as expected
  28  *
  29  * @modules java.xml
  30  *          jdk.internal.jvmstat/sun.jvmstat.monitor
  31  */
  32 
  33 import java.io.*;
  34 import java.net.*;
  35 import javax.xml.parsers.*;
  36 import org.xml.sax.*;
  37 import org.xml.sax.helpers.DefaultHandler;
  38 import sun.jvmstat.monitor.*;
  39 
  40 public class VmIdentifierCreateResolve {
  41 
  42     public static void main(String args[]) throws Exception {
  43         File testcases =
  44                 new File(System.getProperty("test.src", "."), "testcases");
  45 
  46         SAXParserFactory spf = SAXParserFactory.newInstance();
  47         SAXParser sp = spf.newSAXParser();
  48         DefaultHandler dh = new VmIdentifierTestHandler();
  49         sp.parse(testcases, dh);
  50     }


< prev index next >