9 * This code is distributed in the hope that it will be useful, but WITHOUT
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 /*
25 * @test
26 * @bug 5106721
27 * @summary Check the NotificationAccessController methods are properly called.
28 * @author Luis-Miguel Alventosa
29 * @modules java.management/com.sun.jmx.remote.security
30 * @run clean NotificationAccessControllerTest
31 * @run build NotificationAccessControllerTest
32 * @run main NotificationAccessControllerTest
33 */
34
35 import com.sun.jmx.remote.security.NotificationAccessController;
36 import java.util.ArrayList;
37 import java.util.Collections;
38 import java.util.HashMap;
39 import java.util.List;
40 import java.util.Map;
41 import java.util.concurrent.CopyOnWriteArrayList;
42 import java.util.concurrent.Semaphore;
43 import javax.management.MBeanServer;
44 import javax.management.MBeanServerConnection;
45 import javax.management.MBeanServerFactory;
46 import javax.management.Notification;
47 import javax.management.NotificationBroadcasterSupport;
48 import javax.management.NotificationListener;
49 import javax.management.ObjectName;
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
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 /*
25 * @test
26 * @bug 5106721
27 * @summary Check the NotificationAccessController methods are properly called.
28 * @author Luis-Miguel Alventosa
29 * @modules java.management.rmi
30 * java.management/com.sun.jmx.remote.security
31 * @run clean NotificationAccessControllerTest
32 * @run build NotificationAccessControllerTest
33 * @run main NotificationAccessControllerTest
34 */
35
36 import com.sun.jmx.remote.security.NotificationAccessController;
37 import java.util.ArrayList;
38 import java.util.Collections;
39 import java.util.HashMap;
40 import java.util.List;
41 import java.util.Map;
42 import java.util.concurrent.CopyOnWriteArrayList;
43 import java.util.concurrent.Semaphore;
44 import javax.management.MBeanServer;
45 import javax.management.MBeanServerConnection;
46 import javax.management.MBeanServerFactory;
47 import javax.management.Notification;
48 import javax.management.NotificationBroadcasterSupport;
49 import javax.management.NotificationListener;
50 import javax.management.ObjectName;
|