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 6987827
27 * @modules java.base/sun.security.util
28 * java.base/sun.security.tools.keytool
29 * jdk.jartool/sun.security.tools.jarsigner
30 * jdk.policytool/sun.security.tools.policytool
31 * @summary security/util/Resources.java needs improvement
32 */
33
34
35 import java.lang.reflect.Method;
36 import java.util.HashSet;
37 import java.util.Set;
38
39 /**
40 * This test makes sure that the keys in resources files are using the new
41 * format and there is no duplication.
42 */
43 public class NewNamesFormat {
44 public static void main(String[] args) throws Exception {
45 checkRes("sun.security.util.Resources");
46 checkRes("sun.security.util.AuthResources");
47 checkRes("sun.security.tools.jarsigner.Resources");
48 checkRes("sun.security.tools.keytool.Resources");
49 checkRes("sun.security.tools.policytool.Resources");
50 }
51
|
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 6987827
27 * @modules java.base/sun.security.util
28 * java.base/sun.security.tools.keytool
29 * jdk.jartool/sun.security.tools.jarsigner
30 * jdk.policytool/sun.security.tools.policytool
31 * @summary security/util/Resources.java needs improvement
32 * @run main/othervm NewNamesFormat
33 */
34
35
36 import java.lang.reflect.Method;
37 import java.util.HashSet;
38 import java.util.Set;
39
40 /**
41 * This test makes sure that the keys in resources files are using the new
42 * format and there is no duplication.
43 */
44 public class NewNamesFormat {
45 public static void main(String[] args) throws Exception {
46 checkRes("sun.security.util.Resources");
47 checkRes("sun.security.util.AuthResources");
48 checkRes("sun.security.tools.jarsigner.Resources");
49 checkRes("sun.security.tools.keytool.Resources");
50 checkRes("sun.security.tools.policytool.Resources");
51 }
52
|