use of com.alibaba.druid.support.http.stat.WebAppStat in project druid by alibaba.
the class UserAgentBotStat method test_baidu.
public void test_baidu() throws Exception {
WebAppStat stat = new WebAppStat("");
stat.computeUserAgent("Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)");
Assert.assertEquals(1, stat.getBotCount());
Assert.assertEquals(1, stat.getBotBaiduCount());
}
use of com.alibaba.druid.support.http.stat.WebAppStat in project druid by alibaba.
the class UserAgentBotStat method test_Updownerbot.
public void test_Updownerbot() throws Exception {
WebAppStat stat = new WebAppStat("");
stat.computeUserAgent("Updownerbot (+http://www.updowner.com/bot)");
Assert.assertEquals(1, stat.getBotCount());
}
use of com.alibaba.druid.support.http.stat.WebAppStat in project druid by alibaba.
the class UserAgentBotStat method test_Ezooms.
public void test_Ezooms() throws Exception {
WebAppStat stat = new WebAppStat("");
stat.computeUserAgent("Mozilla/5.0 (compatible; Ezooms/1.0; ezooms.bot@gmail.com)");
Assert.assertEquals(1, stat.getBotCount());
}
use of com.alibaba.druid.support.http.stat.WebAppStat in project druid by alibaba.
the class UserAgentBotStat method test_yodao.
public void test_yodao() throws Exception {
WebAppStat stat = new WebAppStat("");
stat.computeUserAgent("Mozilla/5.0 (compatible; YodaoBot/1.0; http://www.yodao.com/help/webmaster/spider/; )");
Assert.assertEquals(1, stat.getBotCount());
}
use of com.alibaba.druid.support.http.stat.WebAppStat in project druid by alibaba.
the class UserAgentBotStat method test_unkownBot6.
public void test_unkownBot6() throws Exception {
WebAppStat stat = new WebAppStat("");
stat.computeUserAgent("Mozilla");
Assert.assertEquals(1, stat.getBotCount());
}
Aggregations