unis_sip/src/test/java/com/ruoyi/common/utils/AddressUtilsTest.java

38 lines
658 B
Java
Raw Normal View History

2018-07-22 06:09:41 +00:00
package com.ruoyi.common.utils;
2018-07-22 06:11:19 +00:00
2018-07-22 06:09:41 +00:00
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
2018-07-22 06:11:19 +00:00
/**
* AddressUtils Tester.
*
* @author Leonhardt
* @version 1.0
* @since 07/22/2018
*/
2018-07-22 06:09:41 +00:00
2018-07-22 06:11:19 +00:00
public class AddressUtilsTest {
2018-07-22 06:09:41 +00:00
2018-07-22 06:11:19 +00:00
@Before
public void before() throws Exception {
}
2018-07-22 06:09:41 +00:00
2018-07-22 06:11:19 +00:00
@After
public void after() throws Exception {
}
2018-07-22 06:09:41 +00:00
2018-07-22 06:11:19 +00:00
/**
* Method: getRealAddressByIP(String ip)
* <p>
*/
@Test
public void testGetRealAddressByIP() throws Exception {
//TODO: Test goes here...
String ipAddress = AddressUtils.getRealAddressByIP("121.8.250.1");
System.out.println(ipAddress);
}
2018-07-22 06:09:41 +00:00
}