From 5b0a2241ca543a3997784efb4edfb41d72e3b051 Mon Sep 17 00:00:00 2001 From: Leonhardt92 Date: Sun, 22 Jul 2018 14:09:41 +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 | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/test/java/com/ruoyi/common/utils/AddressUtilsTest.java diff --git a/src/test/java/com/ruoyi/common/utils/AddressUtilsTest.java b/src/test/java/com/ruoyi/common/utils/AddressUtilsTest.java new file mode 100644 index 00000000..0b35c868 --- /dev/null +++ b/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); +} + + +}