AddressUtilsTest.java 658 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.ruoyi.common.utils;
  2. import org.junit.After;
  3. import org.junit.Before;
  4. import org.junit.Test;
  5. /**
  6. * AddressUtils Tester.
  7. *
  8. * @author Leonhardt
  9. * @version 1.0
  10. * @since 07/22/2018
  11. */
  12. public class AddressUtilsTest {
  13. @Before
  14. public void before() throws Exception {
  15. }
  16. @After
  17. public void after() throws Exception {
  18. }
  19. /**
  20. * Method: getRealAddressByIP(String ip)
  21. * <p>
  22. */
  23. @Test
  24. public void testGetRealAddressByIP() throws Exception {
  25. //TODO: Test goes here...
  26. String ipAddress = AddressUtils.getRealAddressByIP("121.8.250.1");
  27. System.out.println(ipAddress);
  28. }
  29. }