< prev index next >

test/runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java

Print this page




   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  * @summary Test VM Options with ranges
  27  * @library /testlibrary /runtime/CommandLine/OptionsValidation/common
  28  * @modules java.base/jdk.internal.misc
  29  *          java.management
  30  *          jdk.attach/sun.tools.attach
  31  *          jdk.jvmstat/sun.jvmstat.monitor
  32  * @build jdk.test.lib.* TestOptionsWithRanges
  33  * @run main/othervm/timeout=900 TestOptionsWithRanges
  34  */
  35 
  36 import java.util.ArrayList;
  37 import java.util.List;
  38 import java.util.Map;
  39 import jdk.test.lib.Asserts;
  40 import optionsvalidation.JVMOption;
  41 import optionsvalidation.JVMOptionsUtils;
  42 
  43 public class TestOptionsWithRanges {
  44 
  45     private static Map<String, JVMOption> allOptionsAsMap;
  46 
  47     private static void excludeTestMaxRange(String optionName) {
  48         JVMOption option = allOptionsAsMap.get(optionName);
  49 
  50         if (option != null) {
  51             option.excludeTestMaxRange();
  52         }




   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  * @summary Test VM Options with ranges
  27  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  28  * @modules java.base/jdk.internal.misc
  29  *          java.management
  30  *          jdk.attach/sun.tools.attach
  31  *          jdk.jvmstat/sun.jvmstat.monitor

  32  * @run main/othervm/timeout=900 TestOptionsWithRanges
  33  */
  34 
  35 import java.util.ArrayList;
  36 import java.util.List;
  37 import java.util.Map;
  38 import jdk.test.lib.Asserts;
  39 import optionsvalidation.JVMOption;
  40 import optionsvalidation.JVMOptionsUtils;
  41 
  42 public class TestOptionsWithRanges {
  43 
  44     private static Map<String, JVMOption> allOptionsAsMap;
  45 
  46     private static void excludeTestMaxRange(String optionName) {
  47         JVMOption option = allOptionsAsMap.get(optionName);
  48 
  49         if (option != null) {
  50             option.excludeTestMaxRange();
  51         }


< prev index next >