提交 e9a38b68 authored 作者: Thomas Mueller's avatar Thomas Mueller

Separate testNetwork from testSysProperties.

上级 87eff5e1
...@@ -598,15 +598,20 @@ public class Build extends BuildBase { ...@@ -598,15 +598,20 @@ public class Build extends BuildBase {
} }
/** /**
* Test the local network of this machine. * Print the system properties
*/ */
public void testNetwork() { public void testSysProperties() {
try {
System.out.println("environment settings:"); System.out.println("environment settings:");
for (Entry<Object, Object> e : new TreeMap<Object, Object>(System.getProperties()).entrySet()) { for (Entry<Object, Object> e : new TreeMap<Object, Object>(System.getProperties()).entrySet()) {
System.out.println(e); System.out.println(e);
} }
System.out.println(); }
/**
* Test the local network of this machine.
*/
public void testNetwork() {
try {
System.out.println("localhost:" + InetAddress.getByName("localhost")); System.out.println("localhost:" + InetAddress.getByName("localhost"));
for (InetAddress address : InetAddress.getAllByName("localhost")) { for (InetAddress address : InetAddress.getAllByName("localhost")) {
System.out.println(" " + address); System.out.println(" " + address);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论