Path: blob/master/test/hotspot/jtreg/vmTestbase/nsk/jdi/EventRequest/_bounds_/eventrequest001/TestDescription.java
42362 views
/*1* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/222324/*25* @test26*27* @summary converted from VM Testbase nsk/jdi/EventRequest/_bounds_/eventrequest001.28* VM Testbase keywords: [jpda, jdi]29* VM Testbase readme:30* DESCRIPTION:31* The test checks up the methods of com.sun.jdi.EventRequest:32* 1. putProperty(Object, Object)33* 2. getProperty(Object)34* 3. setSuspendPolicy(int)35* to correctly work for boundary values of argument.36* The test performs the next testcases:37* 1. putProperty(null, String) - in this case it is expected38* property <null> with value of <String> will be created.39* No exception must be thrown.40* 2. getProperty(null) - value of <String> from the previous41* case is expected as return value. No exception must be thrown.42* 3. setSuspendPolicy(int) is checked for the next parameters:43* Integer.MIN_VALUE, -1, Integer.MAX_VALUE. IllegalArgumentException44* is expected.45* COMMENTS:46* 4777928 TEST_BUG: two jdi tests should expect IllegalArgumentException47* Test fixed according to test bug:48* 4798088 TEST_BUG: setBreakpoint() method depends of the locations implementation49* - using standard Debugee.setBreakpoint() method50* - adjusting source line numbers used for setting breakpoint51* Test fixed according to test bug:52* 4862601 TEST_BUG: JDI: Unexpected exception was thrown for argument: -214748364853*54* @library /vmTestbase55* /test/lib56* @build nsk.jdi.EventRequest._bounds_.eventrequest00157* nsk.jdi.EventRequest._bounds_.eventrequest001a58* @run main/othervm59* nsk.jdi.EventRequest._bounds_.eventrequest00160* -verbose61* -arch=${os.family}-${os.simpleArch}62* -waittime=563* -debugee.vmkind=java64* -transport.address=dynamic65* -debugee.vmkeys="${test.vm.opts} ${test.java.opts}"66*/67686970