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