< prev index next >

test/java/net/InetAddress/ptr/Lookup.java

Print this page
rev 17272 : 8181391: remove explicit @build actions for the top level testlibary classes
Reviewed-by: duke


  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  * Lookup/reverse lookup class for regression test 4773521
  26  * @test
  27  * @bug 4773521
  28  * @summary Test that reverse lookups of IPv4 addresses work when IPv6
  29  *          is enabled
  30  * @library /test/lib
  31  * @build jdk.test.lib.JDKToolFinder
  32  *        jdk.test.lib.process.OutputAnalyzer
  33  *        Lookup
  34  * @run main Lookup root
  35  *
  36  */
  37 import java.io.IOException;
  38 import java.net.InetAddress;
  39 import java.net.UnknownHostException;
  40 import java.util.List;
  41 
  42 import jdk.test.lib.JDKToolFinder;
  43 import jdk.test.lib.process.OutputAnalyzer;
  44 
  45 public class Lookup {
  46     private static final String HOST = "icann.org";
  47     private static final String SKIP = "SKIP";
  48     private static final String CLASS_PATH = System.getProperty(
  49             "test.class.path");
  50 
  51     public static void main(String args[]) throws IOException {
  52         String addr = null;
  53         String ipv4Name = null;




  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  * Lookup/reverse lookup class for regression test 4773521
  26  * @test
  27  * @bug 4773521
  28  * @summary Test that reverse lookups of IPv4 addresses work when IPv6
  29  *          is enabled
  30  * @library /test/lib



  31  * @run main Lookup root
  32  *
  33  */
  34 import java.io.IOException;
  35 import java.net.InetAddress;
  36 import java.net.UnknownHostException;
  37 import java.util.List;
  38 
  39 import jdk.test.lib.JDKToolFinder;
  40 import jdk.test.lib.process.OutputAnalyzer;
  41 
  42 public class Lookup {
  43     private static final String HOST = "icann.org";
  44     private static final String SKIP = "SKIP";
  45     private static final String CLASS_PATH = System.getProperty(
  46             "test.class.path");
  47 
  48     public static void main(String args[]) throws IOException {
  49         String addr = null;
  50         String ipv4Name = null;


< prev index next >