< prev index next >

test/javax/rmi/PortableRemoteObject/ConcurrentHashMapTest.java

Print this page




  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 8068721
  27  * @summary test RMI-IIOP call with ConcurrentHashMap as an argument
  28  * @library /lib/testlibrary
  29  * @build jdk.testlibrary.*
  30  * @build Test HelloInterface HelloServer HelloClient HelloImpl _HelloImpl_Tie _HelloInterface_Stub ConcurrentHashMapTest
  31  * @run main/othervm -Djava.naming.provider.url=iiop://localhost:1050 -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory  ConcurrentHashMapTest

  32  */
  33 
  34 
  35 import java.io.DataInputStream;
  36 import java.io.File;
  37 import java.util.ArrayList;
  38 import java.util.Arrays;
  39 import java.util.List;
  40 import java.util.concurrent.TimeUnit;
  41 import java.util.concurrent.CountDownLatch;
  42 import jdk.testlibrary.JDKToolFinder;
  43 import jdk.testlibrary.JDKToolLauncher;
  44 
  45 public class ConcurrentHashMapTest {
  46 
  47     static final String ORBD = JDKToolFinder.getTestJDKTool("orbd");
  48     static final String JAVA = JDKToolFinder.getTestJDKTool("java");
  49     static final JDKToolLauncher orbdLauncher = JDKToolLauncher.createUsingTestJDK("orbd");
  50     static final String CLASSPATH = System.getProperty("java.class.path");
  51     static final int FIVE_SECONDS = 5000;




  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 8068721
  27  * @summary test RMI-IIOP call with ConcurrentHashMap as an argument
  28  * @library /lib/testlibrary
  29  * @build jdk.testlibrary.*
  30  * @build Test HelloInterface HelloServer HelloClient HelloImpl _HelloImpl_Tie _HelloInterface_Stub ConcurrentHashMapTest
  31  * @run main/othervm -Djava.naming.provider.url=iiop://localhost:1050 -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory  ConcurrentHashMapTest
  32  * @key intermittent
  33  */
  34 
  35 
  36 import java.io.DataInputStream;
  37 import java.io.File;
  38 import java.util.ArrayList;
  39 import java.util.Arrays;
  40 import java.util.List;
  41 import java.util.concurrent.TimeUnit;
  42 import java.util.concurrent.CountDownLatch;
  43 import jdk.testlibrary.JDKToolFinder;
  44 import jdk.testlibrary.JDKToolLauncher;
  45 
  46 public class ConcurrentHashMapTest {
  47 
  48     static final String ORBD = JDKToolFinder.getTestJDKTool("orbd");
  49     static final String JAVA = JDKToolFinder.getTestJDKTool("java");
  50     static final JDKToolLauncher orbdLauncher = JDKToolLauncher.createUsingTestJDK("orbd");
  51     static final String CLASSPATH = System.getProperty("java.class.path");
  52     static final int FIVE_SECONDS = 5000;


< prev index next >