提交 5987cce8 编写于 作者: Y You Yong

modify the cat test case

上级 787ba19b
......@@ -75,7 +75,7 @@ public class SqlReportJobRecord {
return sb.toString();
}
// domain1 SQLStatement Internal9 500 500 500 100 199 74750 11591750 147
// domain1 SQLStatement Internal9 500 500 500 100 199 74750 11591750 147 123 123 123 123
public SqlReportJobRecord(String currentHour, String text) {
try {
......
......@@ -22,7 +22,8 @@ public class SqlRecordTest {
@Test
public void test2() {
String text = "domain1 SQLStatement-Internal9 insert into mysql where is='sfsdf' 500 500 500 100 199 74750 11591750 147 www.sina.com";
String text = "domain1 SQLStatement-Internal9 insert into mysql where is='sfsdf' "+"" +
"500 500 500 100 199 74750 11591750 147 www.sina.com m_durationDistribution m_hitsOverTime m_durationOverTime m_failureOverTime";
SqlReportJobRecord record = new SqlReportJobRecord("20120309/11", text);
Assert.assertEquals("domain1", record.getDomain());
......@@ -37,5 +38,9 @@ public class SqlRecordTest {
Assert.assertEquals(11591750.0, record.getSum2());
Assert.assertEquals(147.0, record.getAvg2());
Assert.assertEquals("www.sina.com", record.getSampleLink());
Assert.assertEquals("m_durationDistribution", record.getDurationDistribution());
Assert.assertEquals("m_hitsOverTime", record.getHitsOverTime());
Assert.assertEquals("m_durationOverTime", record.getDurationOverTime());
Assert.assertEquals("m_failureOverTime", record.getFailureOverTime());
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册