equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @summary Verify correctnes of the random generator from Utility.java |
26 * @summary Verify correctnes of the random generator from Utility.java |
27 * @library /testlibrary |
27 * @library /test/lib |
28 * @modules java.base/jdk.internal.misc |
28 * @modules java.base/jdk.internal.misc |
29 * java.management |
29 * java.management |
30 * @run driver RandomGeneratorTest SAME_SEED |
30 * @run driver RandomGeneratorTest SAME_SEED |
31 * @run driver RandomGeneratorTest NO_SEED |
31 * @run driver RandomGeneratorTest NO_SEED |
32 * @run driver RandomGeneratorTest DIFFERENT_SEED |
32 * @run driver RandomGeneratorTest DIFFERENT_SEED |
36 import java.io.IOException; |
36 import java.io.IOException; |
37 import java.io.PrintWriter; |
37 import java.io.PrintWriter; |
38 import java.util.ArrayList; |
38 import java.util.ArrayList; |
39 import java.util.List; |
39 import java.util.List; |
40 import java.util.Random; |
40 import java.util.Random; |
41 import jdk.test.lib.OutputAnalyzer; |
41 import jdk.test.lib.process.OutputAnalyzer; |
42 import jdk.test.lib.ProcessTools; |
42 import jdk.test.lib.process.ProcessTools; |
43 import jdk.test.lib.Utils; |
43 import jdk.test.lib.Utils; |
44 |
44 |
45 /** |
45 /** |
46 * The test verifies correctness of work {@link jdk.test.lib.Utils#getRandomInstance()}. |
46 * The test verifies correctness of work {@link jdk.test.lib.Utils#getRandomInstance()}. |
47 * Test works in three modes: same seed provided, no seed provided and |
47 * Test works in three modes: same seed provided, no seed provided and |