Package com.alibaba.druid.support.http.stat

Examples of com.alibaba.druid.support.http.stat.WebAppStat


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

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

        Assert.assertEquals(1, stat.getBotCount());
    }
View Full Code Here


        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());
    }
View Full Code Here

       
        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());
    }
View Full Code Here

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

       
        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());
    }
View Full Code Here

       
        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());
    }
View Full Code Here

       
        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());
    }
View Full Code Here

       
        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());
    }
View Full Code Here

       
        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_KaloogaBot() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Mozilla/5.0 (compatible; KaloogaBot; http://kalooga.com/crawler)");
       
        Assert.assertEquals(1, stat.getBotCount());
    }
View Full Code Here

       
        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_YandexBot() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)");
       
        Assert.assertEquals(1, stat.getBotCount());
    }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.support.http.stat.WebAppStat

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.