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

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


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

    public void test_agent_firefox() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Mozilla/5.0 (X11; U; Linux x86_64; zh-CN; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10");
        Assert.assertEquals(0, stat.getBrowserIECount());
        Assert.assertEquals(1, stat.getBrowserFirefoxCount());
        Assert.assertEquals(1, stat.getOSLinuxCount());
    }
View Full Code Here


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

    public void test_agent_chrome() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16");
        Assert.assertEquals(0, stat.getBrowserIECount());
        Assert.assertEquals(1, stat.getBrowserChromeCount());
        Assert.assertEquals(1, stat.getOSWindowsCount());
    }
View Full Code Here

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

    public void test_agent_opera() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Opera/9.64 (Windows NT 5.1; U; en) Presto/2.1.1");
        Assert.assertEquals(0, stat.getBrowserIECount());
        Assert.assertEquals(1, stat.getOSWindowsCount());
        Assert.assertEquals(1, stat.getBrowserOperaCount());
    }
View Full Code Here

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

    public void test_agent_android22() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Mozilla/5.0 (Linux; U; Android 2.2.1; zh-cn; HTC_Wildfire_A3333 Build/FRG83D) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1");
        Assert.assertEquals(0, stat.getBrowserIECount());
        Assert.assertEquals(1, stat.getOSLinuxCount());
        Assert.assertEquals(1, stat.getOSAndroidCount());
        Assert.assertEquals(1, stat.getDeviceAndroidCount());
    }
View Full Code Here

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

    public void test_agent_other() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("SEC-schx199 UP.Browser/4.1.26l UP.Link/5.1.2.9");
        Assert.assertEquals(0, stat.getBrowserIECount());
    }

    public void test_agent_other_1() throws Exception {
        WebAppStat stat = new WebAppStat("");
View Full Code Here

        Assert.assertEquals(0, stat.getBrowserIECount());
    }

    public void test_agent_other_1() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Mitsu/1.2.B (MT560) MMP/1.1");
        Assert.assertEquals(0, stat.getBrowserIECount());
    }

    public void test_0() throws Exception {
        WebAppStat stat = new WebAppStat("");
View Full Code Here

        Assert.assertEquals(0, stat.getBrowserIECount());
    }

    public void test_0() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Science Traveller International 1X/1.0");
        stat.computeUserAgent("Mozilla/3.0 (compatible)");
        stat.computeUserAgent("amaya/9.52 libwww/5.4.0");
        stat.computeUserAgent("amaya/9.51 libwww/5.4.0");
        stat.computeUserAgent("amaya/9.1 libwww/5.4.0");
        stat.computeUserAgent("amaya/6.2 libwww/5.3.1");
View Full Code Here

    }

    public void test_0() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Science Traveller International 1X/1.0");
        stat.computeUserAgent("Mozilla/3.0 (compatible)");
        stat.computeUserAgent("amaya/9.52 libwww/5.4.0");
        stat.computeUserAgent("amaya/9.51 libwww/5.4.0");
        stat.computeUserAgent("amaya/9.1 libwww/5.4.0");
        stat.computeUserAgent("amaya/6.2 libwww/5.3.1");
        stat.computeUserAgent("AmigaVoyager/3.4.4 (MorphOS/PPC native)");
View Full Code Here

    public void test_0() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Science Traveller International 1X/1.0");
        stat.computeUserAgent("Mozilla/3.0 (compatible)");
        stat.computeUserAgent("amaya/9.52 libwww/5.4.0");
        stat.computeUserAgent("amaya/9.51 libwww/5.4.0");
        stat.computeUserAgent("amaya/9.1 libwww/5.4.0");
        stat.computeUserAgent("amaya/6.2 libwww/5.3.1");
        stat.computeUserAgent("AmigaVoyager/3.4.4 (MorphOS/PPC native)");
        stat.computeUserAgent("xChaos_Arachne/5.1.89;GPL,386+");
View Full Code Here

    public void test_0() throws Exception {
        WebAppStat stat = new WebAppStat("");
        stat.computeUserAgent("Science Traveller International 1X/1.0");
        stat.computeUserAgent("Mozilla/3.0 (compatible)");
        stat.computeUserAgent("amaya/9.52 libwww/5.4.0");
        stat.computeUserAgent("amaya/9.51 libwww/5.4.0");
        stat.computeUserAgent("amaya/9.1 libwww/5.4.0");
        stat.computeUserAgent("amaya/6.2 libwww/5.3.1");
        stat.computeUserAgent("AmigaVoyager/3.4.4 (MorphOS/PPC native)");
        stat.computeUserAgent("xChaos_Arachne/5.1.89;GPL,386+");
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.