Examples of computeUserAgent()


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

        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_Updownerbot() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Updownerbot (+http://www.updowner.com/bot)");
       
        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_archiveOrgBot() throws Exception {
View Full Code Here

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

        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_archiveOrgBot() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Mozilla/5.0 (compatible; archive.org_bot +http://www.archive.org/details/archive.org_bot)");
       
        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_aiHitBot() throws Exception {
View Full Code Here

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

        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_aiHitBot() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Mozilla/5.0 (compatible; aiHitBot/1.1; +http://www.aihit.com/)");
       
        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_DoCoMo() throws Exception {
View Full Code Here

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

        Assert.assertEquals(1, stat.getBotCount());
    }
   
    public void test_DoCoMo() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("DoCoMo/2.0 P900i(c100;TB;W24H11) (compatible; ichiro/mobile goo; +http://search.goo.ne.jp/option/use/sub4/sub4-1/)");
       
        Assert.assertEquals(1, stat.getBotCount());
    }
}
View Full Code Here

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

public class UserAgentWindows extends TestCase {

    public void test_windows98() throws Exception {
        WebAppStat stat = new WebAppStat("");

        stat.computeUserAgent("Mozilla/4.0 (compatible; MSIE 5.00; Windows 98)");
        Assert.assertEquals(1, stat.getBrowserIECount());
        Assert.assertEquals(0, stat.getBrowserChromeCount());
        Assert.assertEquals(0, stat.getBrowserFirefoxCount());
        Assert.assertEquals(0, stat.getBrowserIE10Count());
        Assert.assertEquals(1, stat.getBrowserIE5Count());
View Full Code Here

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

    }
   
    public void test_windowsXP_IE6_1() throws Exception {
        WebAppStat stat = new WebAppStat("");
       
        stat.computeUserAgent("Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
        Assert.assertEquals(1, stat.getBrowserIECount());
        Assert.assertEquals(0, stat.getBrowserChromeCount());
        Assert.assertEquals(0, stat.getBrowserFirefoxCount());
        Assert.assertEquals(0, stat.getBrowserIE10Count());
        Assert.assertEquals(0, stat.getBrowserIE5Count());
View Full Code Here

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

    }

    public void test_windowsXP_IE7() throws Exception {
        WebAppStat stat = new WebAppStat("");
       
        stat.computeUserAgent("Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) (none))");
        Assert.assertEquals(1, stat.getBrowserIECount());
        Assert.assertEquals(0, stat.getBrowserChromeCount());
        Assert.assertEquals(0, stat.getBrowserFirefoxCount());
        Assert.assertEquals(0, stat.getBrowserIE10Count());
        Assert.assertEquals(0, stat.getBrowserIE5Count());
View Full Code Here

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

    }
   
    public void test_windowsXP_IE8() throws Exception {
        WebAppStat stat = new WebAppStat("");
       
        stat.computeUserAgent("Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)");
        Assert.assertEquals(1, stat.getBrowserIECount());
        Assert.assertEquals(0, stat.getBrowserChromeCount());
        Assert.assertEquals(0, stat.getBrowserFirefoxCount());
        Assert.assertEquals(0, stat.getBrowserIE10Count());
        Assert.assertEquals(0, stat.getBrowserIE5Count());
View Full Code Here

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

    }
   
    public void test_windowsXP_IE9() throws Exception {
        WebAppStat stat = new WebAppStat("");
       
        stat.computeUserAgent("Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 5.1; WOW64; Trident/4.0)");
        Assert.assertEquals(1, stat.getBrowserIECount());
        Assert.assertEquals(0, stat.getBrowserChromeCount());
        Assert.assertEquals(0, stat.getBrowserFirefoxCount());
        Assert.assertEquals(0, stat.getBrowserIE10Count());
        Assert.assertEquals(0, stat.getBrowserIE5Count());
View Full Code Here

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

    }
   
    public void test_windowsXP_firefox() throws Exception {
        WebAppStat stat = new WebAppStat("");
       
        stat.computeUserAgent("Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8");
        Assert.assertEquals(0, stat.getBrowserIECount());
        Assert.assertEquals(0, stat.getBrowserChromeCount());
        Assert.assertEquals(1, stat.getBrowserFirefoxCount());
        Assert.assertEquals(0, stat.getBrowserIE10Count());
        Assert.assertEquals(0, stat.getBrowserIE5Count());
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.