提交ip查询的测试用例

dep_wangsr
Leonhardt92 7 years ago committed by Limy
parent 5b0a2241ca
commit a9de182d1c

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

Loading…
Cancel
Save