Package com.dianping.cat.report.task.alert.exception

Examples of com.dianping.cat.report.task.alert.exception.TopReportVisitor


    String expectedAlertReportXml = Files.forIO()
          .readFrom(getClass().getResourceAsStream("alertReport.xml"), "utf-8");

    ExceptionConfigMock exceptionConfigManager = new ExceptionConfigMock();
    AlertReport alertReport = new AlertReport(Constants.CAT);
    TopReportVisitor visitor = new TopReportVisitor().setReport(alertReport).setExceptionConfigManager(
        exceptionConfigManager);

    alertReport.setStartTime(topReport.getStartTime());
    alertReport.setEndTime(topReport.getEndTime());
    visitor.visitTopReport(topReport);

    Assert.assertEquals("Check the report result!", expectedAlertReportXml.replace("\r", ""), alertReport.toString()
          .replace("\r", ""));
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.report.task.alert.exception.TopReportVisitor

Copyright © 2018 www.massapicom. 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.