jdk/test/java/rmi/transport/checkFQDN/CheckFQDN.java
changeset 42686 a907a774b802
parent 40261 86a49ba76f52
child 43296 0f1ac3527db2
equal deleted inserted replaced
42685:a538ed225637 42686:a907a774b802
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2015, 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.
    79             checkFQDN = new CheckFQDN();
    79             checkFQDN = new CheckFQDN();
    80 
    80 
    81             System.err.println
    81             System.err.println
    82                 ("\nRegression test for bug/rfe 4115683\n");
    82                 ("\nRegression test for bug/rfe 4115683\n");
    83 
    83 
    84             Registry registry = TestLibrary.createRegistryOnUnusedPort();
    84             Registry registry = TestLibrary.createRegistryOnEphemeralPort();
    85             REGISTRY_PORT = TestLibrary.getRegistryPort(registry);
    85             REGISTRY_PORT = TestLibrary.getRegistryPort(registry);
    86             registry.bind("CheckFQDN", checkFQDN);
    86             registry.bind("CheckFQDN", checkFQDN);
    87 
    87 
    88             /* test the host name scheme in different environments.*/
    88             /* test the host name scheme in different environments.*/
    89             testProperty("java.rmi.server.useLocalHostname", "true", "");
    89             testProperty("java.rmi.server.useLocalHostname", "true", "");