From a9de182d1c8e6b55e4b9f6118fb3d0a7a436db95 Mon Sep 17 00:00:00 2001 From: Leonhardt92 Date: Sun, 22 Jul 2018 14:11:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4ip=E6=9F=A5=E8=AF=A2=E7=9A=84?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/common/utils/AddressUtilsTest.java | 52 +++++++++---------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/src/test/java/com/ruoyi/common/utils/AddressUtilsTest.java b/src/test/java/com/ruoyi/common/utils/AddressUtilsTest.java index 0b35c868..a778b405 100644 --- a/src/test/java/com/ruoyi/common/utils/AddressUtilsTest.java +++ b/src/test/java/com/ruoyi/common/utils/AddressUtilsTest.java @@ -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) + *

+ */ + @Test + public void testGetRealAddressByIP() throws Exception { + //TODO: Test goes here... + String ipAddress = AddressUtils.getRealAddressByIP("121.8.250.1"); + System.out.println(ipAddress); + } }