Package com.alibaba.druid.support.http.util

Examples of com.alibaba.druid.support.http.util.IPRange


        assertTrue(rang.isIPAddressInRange(new IPAddress("2.16.200.0")));

    }

    public void test_ipRange_4() throws Exception {
        IPRange rang = new IPRange("1.1.1.1/0");

        assertTrue(rang.isIPAddressInRange(new IPAddress("2.16.200.0")));
    }
View Full Code Here


        assertTrue(rang.isIPAddressInRange(new IPAddress("2.16.200.0")));
    }
   
    public void test_ipRange_5() throws Exception {
        IPRange rang = new IPRange("1.1.1.1");

        assertTrue(rang.isIPAddressInRange(new IPAddress("1.1.1.1")));
    }
View Full Code Here

        assertTrue(rang.isIPAddressInRange(new IPAddress("1.1.1.1")));
    }
   
    public void test_ipRange_6() throws Exception {
        IPRange rang = new IPRange("128.242.127.3");
       
        assertTrue(rang.isIPAddressInRange(new IPAddress("128.242.127.3")));
        assertFalse(rang.isIPAddressInRange(new IPAddress("128.242.127.4")));
    }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.support.http.util.IPRange

Copyright © 2018 www.massapicom. 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.