Examples of computeUserAgent()


Examples of com.alibaba.druid.support.http.stat.WebAppStat.computeUserAgent()

        Assert.assertEquals(1, stat.getBotCount());
    }

    public void test_unkownBot1() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Mozilla/5.0 (compatible; Mail.RU/2.0)");

        Assert.assertEquals(1, stat.getBotCount());
    }

    public void test_unkownBot2() throws Exception {
View Full Code Here

Examples of com.alibaba.druid.support.http.stat.WebAppStat.computeUserAgent()

        Assert.assertEquals(1, stat.getBotCount());
    }

    public void test_unkownBot2() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Mozilla/5.0 (compatible; MJ12bot/v1.4.2; http://www.majestic12.co.uk/bot.php?+)");

        Assert.assertEquals(1, stat.getBotCount());
    }

    public void test_unkownBot3() throws Exception {
View Full Code Here

Examples of com.alibaba.druid.support.http.stat.WebAppStat.computeUserAgent()

        Assert.assertEquals(1, stat.getBotCount());
    }

    public void test_unkownBot3() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("-");

        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_unkownBot4() throws Exception {
View Full Code Here

Examples of com.alibaba.druid.support.http.stat.WebAppStat.computeUserAgent()

        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_unkownBot4() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("\"Mozilla/5.0");
       
        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_unkownBot5() throws Exception {
View Full Code Here

Examples of com.alibaba.druid.support.http.stat.WebAppStat.computeUserAgent()

        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_unkownBot5() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) Speedy Spider (http://www.entireweb.com/about/search_tech/speedy_spider/)");
       
        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_unkownBot6() throws Exception {
View Full Code Here

Examples of com.alibaba.druid.support.http.stat.WebAppStat.computeUserAgent()

        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_unkownBot6() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Mozilla");
       
        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_unkownBot7() throws Exception {
View Full Code Here

Examples of com.alibaba.druid.support.http.stat.WebAppStat.computeUserAgent()

        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_unkownBot7() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Crawl/0.01 libcrawl/0.3");
       
        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_unkownBot8() throws Exception {
View Full Code Here

Examples of com.alibaba.druid.support.http.stat.WebAppStat.computeUserAgent()

        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_unkownBot8() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("SkimBot/1.0 (www.skimlinks.com <dev@skimlinks.com>)");
       
        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_huawei() throws Exception {
View Full Code Here

Examples of com.alibaba.druid.support.http.stat.WebAppStat.computeUserAgent()

        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_huawei() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("HuaweiSymantecSpider/1.0+DSE-support@huaweisymantec.com+(compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR ; http://www.huaweisymantec.com/en/IRL/spider)");
       
        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_Yeti() throws Exception {
View Full Code Here

Examples of com.alibaba.druid.support.http.stat.WebAppStat.computeUserAgent()

        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_Yeti() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Yeti/1.0 (NHN Corp.; http://help.naver.com/robots/)");
       
        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_KaloogaBot() throws Exception {
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.