parent
6d09d0cbeb
commit
ca09811d79
11 changed files with 54 additions and 10 deletions
After Width: | Height: | Size: 17 KiB |
@ -0,0 +1,20 @@ |
||||
package com.lq.code.util.os; |
||||
|
||||
import org.junit.Test; |
||||
|
||||
import static org.junit.Assert.*; |
||||
|
||||
public class NetUtilTest { |
||||
|
||||
@Test |
||||
public void getIP() { |
||||
String serverIp = NetUtil.getIP(); |
||||
System.out.println(serverIp); |
||||
} |
||||
|
||||
@Test |
||||
public void getLocalIpAddr() { |
||||
String serverIp = NetUtil.getLocalIpAddr(); |
||||
System.out.println(serverIp); |
||||
} |
||||
} |
Loading…
Reference in new issue