< prev index next >

test/java/lang/management/RuntimeMXBean/GetSystemProperties.java

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


   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     4990512
  27  * @summary Basic Test for RuntimeMXBean.getSystemProperties().
  28  * @author  Mandy Chung
  29  * @modules java.management
  30  */
  31 
  32 import java.lang.management.ManagementFactory;
  33 import java.lang.management.RuntimeMXBean;
  34 import java.util.*;
  35 
  36 public class GetSystemProperties {
  37     private static final String KEY1   = "test.property.key1";
  38     private static final String VALUE1 = "test.property.value1";
  39     private static final String KEY2   = "test.property.key2";
  40     private static final String VALUE2 = "test.property.value2";
  41 
  42     // system properties to be omitted
  43     private static final String KEY3   = "test.property.key3";
  44     private static final Long VALUE3   = new Long(0);;
  45 
  46     private static final Object KEY4   = new Object();
  47     private static final String VALUE4 = "test.property.value4";
  48 
  49     public static void main(String[] argv) throws Exception {




   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     4990512
  27  * @summary Basic Test for RuntimeMXBean.getSystemProperties().
  28  * @author  Mandy Chung

  29  */
  30 
  31 import java.lang.management.ManagementFactory;
  32 import java.lang.management.RuntimeMXBean;
  33 import java.util.*;
  34 
  35 public class GetSystemProperties {
  36     private static final String KEY1   = "test.property.key1";
  37     private static final String VALUE1 = "test.property.value1";
  38     private static final String KEY2   = "test.property.key2";
  39     private static final String VALUE2 = "test.property.value2";
  40 
  41     // system properties to be omitted
  42     private static final String KEY3   = "test.property.key3";
  43     private static final Long VALUE3   = new Long(0);;
  44 
  45     private static final Object KEY4   = new Object();
  46     private static final String VALUE4 = "test.property.value4";
  47 
  48     public static void main(String[] argv) throws Exception {


< prev index next >