提交ip查询的测试用例

pull/15/head
Leonhardt92 2018-07-22 14:11:19 +08:00
parent 48ad8fa0fd
commit 9e8d80a699
1 changed files with 25 additions and 27 deletions

View File

@ -1,39 +1,37 @@
package com.ruoyi.common.utils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* AddressUtils Tester.
*
* @author Leonhardt
* @since 07/22/2018
* @version 1.0
*/
/**
* AddressUtils Tester.
*
* @author Leonhardt
* @version 1.0
* @since 07/22/2018
*/
public class AddressUtilsTest {
public class AddressUtilsTest {
@Before
public void before() throws Exception {
}
@Before
public void before() throws Exception {
}
@After
public void after() throws Exception {
}
@After
public void after() throws Exception {
}
/**
*
* Method: getRealAddressByIP(String ip)
*
* $method.annotation
*/
@Test
public void testGetRealAddressByIP() throws Exception {
//TODO: Test goes here...
String ipAddress = AddressUtils.getRealAddressByIP("121.8.250.154");
System.out.println(ipAddress);
}
/**
* 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);
}
}