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

Separate testNetwork from testSysProperties.

上级 87eff5e1
...@@ -597,16 +597,21 @@ public class Build extends BuildBase { ...@@ -597,16 +597,21 @@ public class Build extends BuildBase {
java(testClass, null); java(testClass, null);
} }
/**
* Print the system properties
*/
public void testSysProperties() {
System.out.println("environment settings:");
for (Entry<Object, Object> e : new TreeMap<Object, Object>(System.getProperties()).entrySet()) {
System.out.println(e);
}
}
/** /**
* Test the local network of this machine. * Test the local network of this machine.
*/ */
public void testNetwork() { public void testNetwork() {
try { try {
System.out.println("environment settings:");
for (Entry<Object, Object> e : new TreeMap<Object, Object>(System.getProperties()).entrySet()) {
System.out.println(e);
}
System.out.println();
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论