Package com.google.test.metric.report

Examples of com.google.test.metric.report.SourceLinker


      public ClassIssues determineIssues(ClassCost classCost) {
        return new ClassIssues("com/google/FooClass", 100, new LinkedList<Issue>(Arrays.asList(issue)));
      }
    };
    ReportOptions options = new ReportOptions(1, 10, 1, 10, 20, 5, 100, 100, 1, 10, "", "");
    SourceLinker linker = new SourceLinker("http://code.repository/basepath/{path}&line={line}",
        "http://code.repository/basepath/{path}");

    cost = new ClassCost(getClass().getName(), Arrays.asList(methodCost));
    HtmlReportModel report =
        new HtmlReportModel(costModel, new AnalysisModel(issuesReporter), options);
View Full Code Here


        new ResourceBundleModel(ResourceBundle.getBundle("messages"), objectWrapper);
    issueQueue = Lists.newLinkedList();
    template = cfg.getTemplate("costDetailBoxTest.ftl");
    model = new HashMap<String, Object>();
    model.put("message", messageBundleModel);
    model.put("sourceLink", new SourceLinkerModel(new SourceLinker("", "")));
  }
View Full Code Here

   * @param sourceLoader Source Loader used by {@link ReportFormat#source} reports.
   * @return a ready to use {@link ReportGenerator}
   */
  public ReportGenerator build(CostModel costModel, ReportModel reportModel,
      SourceLoader sourceLoader) {
    SourceLinker linker = new SourceLinker(
        options.getSrcFileLineUrl(), options.getSrcFileUrl());
    Configuration cfg = new Configuration();
    cfg.setTemplateLoader(new ClassPathTemplateLoader(PREFIX));
    BeansWrapper objectWrapper = new DefaultObjectWrapper();
    cfg.setObjectWrapper(objectWrapper);
View Full Code Here

TOP

Related Classes of com.google.test.metric.report.SourceLinker

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.