< prev index next >

test/com/sun/jndi/dns/Test6991580.java

Print this page


   1 
   2 /*
   3  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  */
  24 
  25 import java.awt.Button;
  26 import java.awt.Dialog;
  27 import java.awt.Frame;
  28 import java.awt.Panel;
  29 import java.awt.TextArea;
  30 import java.awt.event.ActionEvent;
  31 import java.awt.event.ActionListener;
  32 
  33 /*
  34  * @test
  35  * @bug 6991580 8080108 8133035
  36  * @requires os.family != "windows"
  37  * @summary IPv6 Nameservers in resolv.conf throws NumberFormatException
  38  * @modules java.desktop
  39  *          jdk.naming.dns/com.sun.jndi.dns
  40  * @compile --add-modules jdk.naming.dns IPv6NameserverPlatformParsingTest.java
  41  * @run main/manual Test6991580
  42  */
  43 
  44 
  45 public class Test6991580 {
  46 
  47    private static void init() throws Exception {
  48     //*** Create instructions for the user here ***
  49 
  50     String[] instructions =
  51         {
  52          "This test should only be run on non-Windows systems.",
  53          "If your system doesn't meet this condition, press PASS.",
  54          "To run the test follow these instructions:",
  55          "1. Open a terminal window.",
  56          "2. Make sure you have, for example, the following snippet "
  57             + "into your platform's /etc/resolv.conf:",
  58          "nameserver 127.0.0.1",
  59          "nameserver 2001:4860:4860::8888",
  60          "nameserver [::1]:5353",


   1 
   2 /*
   3  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  */
  24 
  25 import java.awt.Button;
  26 import java.awt.Dialog;
  27 import java.awt.Frame;
  28 import java.awt.Panel;
  29 import java.awt.TextArea;
  30 import java.awt.event.ActionEvent;
  31 import java.awt.event.ActionListener;
  32 
  33 /*
  34  * @test
  35  * @bug 6991580 8080108 8133035
  36  * @requires os.family != "windows"
  37  * @summary IPv6 Nameservers in resolv.conf throws NumberFormatException
  38  * @modules java.desktop
  39  *          jdk.naming.dns/com.sun.jndi.dns

  40  * @run main/manual Test6991580
  41  */
  42 
  43 
  44 public class Test6991580 {
  45 
  46    private static void init() throws Exception {
  47     //*** Create instructions for the user here ***
  48 
  49     String[] instructions =
  50         {
  51          "This test should only be run on non-Windows systems.",
  52          "If your system doesn't meet this condition, press PASS.",
  53          "To run the test follow these instructions:",
  54          "1. Open a terminal window.",
  55          "2. Make sure you have, for example, the following snippet "
  56             + "into your platform's /etc/resolv.conf:",
  57          "nameserver 127.0.0.1",
  58          "nameserver 2001:4860:4860::8888",
  59          "nameserver [::1]:5353",


< prev index next >