8169866: TESTBUG: com/sun/security/ tests have undeclared modules dependencies
authorskovalev
Tue, 29 Nov 2016 14:55:56 +0300
changeset 42323 5afe7a82357f
parent 42322 c3474fef4fe4
child 42324 16e82bbefbee
8169866: TESTBUG: com/sun/security/ tests have undeclared modules dependencies Reviewed-by: weijun
jdk/test/com/sun/security/auth/TEST.properties
jdk/test/com/sun/security/jgss/InquireSecContextPermissionCheck.java
jdk/test/com/sun/security/sasl/Cram.java
jdk/test/com/sun/security/sasl/TEST.properties
jdk/test/com/sun/security/sasl/digest/TEST.properties
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jdk/test/com/sun/security/auth/TEST.properties	Tue Nov 29 14:55:56 2016 +0300
@@ -0,0 +1,1 @@
+modules = jdk.security.auth
--- a/jdk/test/com/sun/security/jgss/InquireSecContextPermissionCheck.java	Mon Nov 28 23:47:23 2016 -0800
+++ b/jdk/test/com/sun/security/jgss/InquireSecContextPermissionCheck.java	Tue Nov 29 14:55:56 2016 +0300
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -21,9 +21,10 @@
  * questions.
  */
 
-/**
+/*
  * @test
  * @bug 6710360
+ * @modules jdk.security.jgss
  * @summary export Kerberos session key to applications
  */
 
--- a/jdk/test/com/sun/security/sasl/Cram.java	Mon Nov 28 23:47:23 2016 -0800
+++ b/jdk/test/com/sun/security/sasl/Cram.java	Tue Nov 29 14:55:56 2016 +0300
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -24,15 +24,17 @@
 /*
  * @test
  * @bug 4634892
+ * @modules jdk.security.auth
  * @summary Ensure that authentication via CRAM-MD5 works.
  */
 
 /*
  * Can set logging to FINEST to view exchange.
  */
-import javax.security.sasl.*;
-import javax.security.auth.callback.*;
-import java.security.Security;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.sasl.Sasl;
+import javax.security.sasl.SaslClient;
+import javax.security.sasl.SaslServer;
 
 public class Cram {
     private static final String MECH = "CRAM-MD5";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jdk/test/com/sun/security/sasl/TEST.properties	Tue Nov 29 14:55:56 2016 +0300
@@ -0,0 +1,1 @@
+modules = java.security.sasl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jdk/test/com/sun/security/sasl/digest/TEST.properties	Tue Nov 29 14:55:56 2016 +0300
@@ -0,0 +1,1 @@
+modules = jdk.security.auth