quintinali commented on a change in pull request #35: SDAP-161 MUDROD embedded 
unit test
URL: 
https://github.com/apache/incubator-sdap-mudrod/pull/35#discussion_r238318734
 
 

 ##########
 File path: 
core/src/test/java/org/apache/sdap/mudrod/weblog/structure/log/GeoIpTest.java
 ##########
 @@ -0,0 +1,18 @@
+package org.apache.sdap.mudrod.weblog.structure.log;
+
+import static org.junit.Assert.*;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class GeoIpTest {
+
+       @Test
+       public void testToLocation() {
+               GeoIp ip = new GeoIp();
+               String iptest = "185.10.104.194";
+               Coordinates result = ip.toLocation(iptest);
+               Assert.assertEquals("failed in geoip function!", 
"22.283001,114.150002", result.latlon);
+       }
+
+}
 
 Review comment:
   I cannot understand which resource do you mean should be decompressed?  
There is not a specific reason for choosing logs from 2015.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to