Examples of FreeGeoIpService


Examples of io.fabric8.service.FreeGeoIpService

import org.junit.Test;

public class FreeGeoIpServiceTest {
    @Test
    public void testGeoLocation(){
       String result = new FreeGeoIpService().getGeoLocation();
        Assert.assertNotNull(result);
        //could be an empty line if can't access geo location site
        if (!result.isEmpty()){
           Assert.assertFalse(result.contains(":"));
           int index = result.indexOf(',');
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.