Package com.dianping.cat.consumer.transaction.model.entity

Examples of com.dianping.cat.consumer.transaction.model.entity.TransactionReport.findMachine()


  @Test
  public void whether_url_has_max_names() throws Exception {
    String source = Files.forIO().readFrom(getClass().getResourceAsStream("transaction_report_filter.xml"), "utf-8");
    TransactionReport report = DefaultSaxParser.parse(source);

    TransactionType type = report.findMachine("10.1.77.193").findType("URL");

    for (int i = 0; i < 3500; i++) {
      type.addName(new TransactionName("Test" + i));
    }
View Full Code Here


    TransactionReportCountFilter f1 = new TransactionReportCountFilter();
    String filterReport = f1.buildXml(report);
    TransactionReport newReport = DefaultSaxParser.parse(filterReport);

    int newSize = newReport.findMachine("10.1.77.193").findType("URL").getNames().size();

    Assert.assertEquals(MAX_URL_NUM, newSize);

  }
}
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.