Parcourir la source

提交ip查询的测试用例

Leonhardt92 il y a 6 ans
Parent
commit
48ad8fa0fd
1 fichiers modifiés avec 39 ajouts et 0 suppressions
  1. 39 0
      src/test/java/com/ruoyi/common/utils/AddressUtilsTest.java

+ 39 - 0
src/test/java/com/ruoyi/common/utils/AddressUtilsTest.java

@@ -0,0 +1,39 @@
+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 
+*/ 
+
+public class AddressUtilsTest { 
+
+@Before
+public void before() 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);
+} 
+
+
+}