< prev index next >

test/java/net/NetworkConfigurationProbe.java

Print this page
rev 17325 : 8181761: add explicit @build actions for jdk.test.lib classes in all :tier2 tests
Reviewed-by: duke


   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  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  * @test
  26  * @summary NOT A TEST. Captures the network interface configuration.
  27  * @library /test/lib







  28  * @run main NetworkConfigurationProbe
  29  */
  30 
  31 import java.net.Inet4Address;
  32 import java.net.Inet6Address;
  33 import java.net.NetworkInterface;
  34 import jdk.test.lib.NetworkConfiguration;
  35 import static java.util.stream.Collectors.joining;
  36 import static java.lang.System.out;
  37 
  38 /**
  39  * Not a test. Captures the network interface configuration.
  40  */
  41 public class NetworkConfigurationProbe {
  42 
  43     public static void main(String... args) throws Exception {
  44         NetworkConfiguration.printSystemConfiguration(out);
  45 
  46         NetworkConfiguration nc = NetworkConfiguration.probe();
  47         String list;




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  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  * @test
  26  * @summary NOT A TEST. Captures the network interface configuration.
  27  * @library /test/lib
  28  * @build jdk.test.lib.NetworkConfiguration
  29  *        jdk.test.lib.Utils
  30  *        jdk.test.lib.Asserts
  31  *        jdk.test.lib.JDKToolFinder
  32  *        jdk.test.lib.JDKToolLauncher
  33  *        jdk.test.lib.Platform
  34  *        jdk.test.lib.process.*
  35  * @run main NetworkConfigurationProbe
  36  */
  37 
  38 import java.net.Inet4Address;
  39 import java.net.Inet6Address;
  40 import java.net.NetworkInterface;
  41 import jdk.test.lib.NetworkConfiguration;
  42 import static java.util.stream.Collectors.joining;
  43 import static java.lang.System.out;
  44 
  45 /**
  46  * Not a test. Captures the network interface configuration.
  47  */
  48 public class NetworkConfigurationProbe {
  49 
  50     public static void main(String... args) throws Exception {
  51         NetworkConfiguration.printSystemConfiguration(out);
  52 
  53         NetworkConfiguration nc = NetworkConfiguration.probe();
  54         String list;


< prev index next >