jdk/test/java/rmi/activation/ActivationSystem/unregisterGroup/UnregisterGroup.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 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. |
30 * @library ../../../testlibrary |
30 * @library ../../../testlibrary |
31 * @modules java.rmi/sun.rmi.registry |
31 * @modules java.rmi/sun.rmi.registry |
32 * java.rmi/sun.rmi.server |
32 * java.rmi/sun.rmi.server |
33 * java.rmi/sun.rmi.transport |
33 * java.rmi/sun.rmi.transport |
34 * java.rmi/sun.rmi.transport.tcp |
34 * java.rmi/sun.rmi.transport.tcp |
35 * @build TestLibrary RMID ActivationLibrary ActivateMe |
35 * java.base/sun.nio.ch |
|
36 * @build TestLibrary RMID ActivationLibrary ActivateMe RMIDSelectorProvider |
36 * @run main/othervm/policy=security.policy UnregisterGroup |
37 * @run main/othervm/policy=security.policy UnregisterGroup |
37 */ |
38 */ |
38 |
39 |
39 import java.io.*; |
40 import java.io.*; |
40 import java.rmi.*; |
41 import java.rmi.*; |
74 TestLibrary.suggestSecurityManager("java.rmi.RMISecurityManager"); |
75 TestLibrary.suggestSecurityManager("java.rmi.RMISecurityManager"); |
75 RMID rmid = null; |
76 RMID rmid = null; |
76 |
77 |
77 try { |
78 try { |
78 RMID.removeLog(); |
79 RMID.removeLog(); |
79 rmid = RMID.createRMID(); |
80 rmid = RMID.createRMIDOnEphemeralPort(); |
80 rmid.start(); |
81 rmid.start(); |
81 |
82 |
82 /* Cause activation groups to have a security policy that will |
83 /* Cause activation groups to have a security policy that will |
83 * allow security managers to be downloaded and installed |
84 * allow security managers to be downloaded and installed |
84 */ |
85 */ |