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 /* @test
25 * @bug 4098239 4107540 4080736 4261102 4274710 4305272
26 * 4979017 4979028 4979031 5030267 6222207 8040806
27 * @summary Test the operation of the methods of BitSet class
28 * @author Mike McCloskey, Martin Buchholz
29 * @run main/othervm BSMethods
30 */
31
32 import java.util.*;
33
34 /**
35 * This is a simple test class created to run tests on the BitSet class.
36 *
37 */
38 public class BSMethods {
39
40 private static Random generator = new Random();
41 private static boolean failure = false;
42
43 private static void fail(String diagnostic) {
44 new Error(diagnostic).printStackTrace();
45 failure = true;
46 }
47
48 private static void check(boolean condition) {
49 check(condition, "something's fishy");
|
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 /* @test
25 * @bug 4098239 4107540 4080736 4261102 4274710 4305272
26 * 4979017 4979028 4979031 5030267 6222207 8040806
27 * @summary Test the operation of the methods of BitSet class
28 * @author Mike McCloskey, Martin Buchholz
29 * @run main/othervm BSMethods
30 * @key randomness
31 */
32
33 import java.util.*;
34
35 /**
36 * This is a simple test class created to run tests on the BitSet class.
37 *
38 */
39 public class BSMethods {
40
41 private static Random generator = new Random();
42 private static boolean failure = false;
43
44 private static void fail(String diagnostic) {
45 new Error(diagnostic).printStackTrace();
46 failure = true;
47 }
48
49 private static void check(boolean condition) {
50 check(condition, "something's fishy");
|