Examples of ILanguageNames


Examples of org.jacoco.report.ILanguageNames

      final ReportOutputFolder folder, final IHTMLReportContext context) {
    super(parent, folder, context);
    this.sessionInfos = sessionInfos;
    this.executionData = new ArrayList<ExecutionData>(executionData);
    this.index = index;
    final ILanguageNames names = context.getLanguageNames();
    Collections.sort(this.executionData, new Comparator<ExecutionData>() {
      public int compare(final ExecutionData e1, final ExecutionData e2) {
        return names.getQualifiedClassName(e1.getName()).compareTo(
            names.getQualifiedClassName(e2.getName()));
      }
    });
  }
View Full Code Here

Examples of org.jacoco.report.ILanguageNames

      final HTMLElement tr = table.thead().tr();
      tr.td().text("Class");
      tr.td().text("Id");
    }
    final HTMLElement tbody = table.tbody();
    final ILanguageNames names = context.getLanguageNames();
    for (final ExecutionData e : executionData) {
      final HTMLElement tr = tbody.tr();
      final String link = index.getLinkToClass(e.getId());
      final String qualifiedName = names.getQualifiedClassName(e
          .getName());
      if (link == null) {
        tr.td().span(Styles.EL_CLASS).text(qualifiedName);
      } else {
        tr.td().a(link, Styles.EL_CLASS).text(qualifiedName);
View Full Code Here

Examples of org.jacoco.report.ILanguageNames

  public void setup() {
    output = new MemoryMultiReportOutput();
    root = new ReportOutputFolder(output);
    index = new ElementIndex(root);
    final Resources resources = new Resources(root);
    final ILanguageNames names = new JavaNames();
    context = new IHTMLReportContext() {

      public ILanguageNames getLanguageNames() {
        return names;
      }
View Full Code Here

Examples of org.jacoco.report.ILanguageNames

    this.sessionInfos = sessionInfos;
    this.executionData = new ArrayList<ExecutionData>(executionData);
    this.index = index;
    dateFormat = DateFormat.getDateTimeInstance(DateFormat.DEFAULT,
        DateFormat.DEFAULT, context.getLocale());
    final ILanguageNames names = context.getLanguageNames();
    Collections.sort(this.executionData, new Comparator<ExecutionData>() {
      public int compare(final ExecutionData e1, final ExecutionData e2) {
        return names.getQualifiedClassName(e1.getName()).compareTo(
            names.getQualifiedClassName(e2.getName()));
      }
    });
  }
View Full Code Here

Examples of org.jacoco.report.ILanguageNames

      final HTMLElement tr = table.thead().tr();
      tr.td().text("Class");
      tr.td().text("Id");
    }
    final HTMLElement tbody = table.tbody();
    final ILanguageNames names = context.getLanguageNames();
    for (final ExecutionData e : executionData) {
      final HTMLElement tr = tbody.tr();
      final String link = index.getLinkToClass(e.getId());
      final String qualifiedName = names.getQualifiedClassName(e
          .getName());
      if (link == null) {
        tr.td().span(Styles.EL_CLASS).text(qualifiedName);
      } else {
        tr.td().a(link, Styles.EL_CLASS).text(qualifiedName);
View Full Code Here

Examples of org.jacoco.report.ILanguageNames

        line.startsWith("<?xml version=\"1.0\" encoding=\"UTF-16\""));
  }

  @Test
  public void testGetLanguageNames() throws Exception {
    ILanguageNames names = new ILanguageNames() {
      public String getPackageName(String vmname) {
        return null;
      }

      public String getQualifiedClassName(String vmname) {
View Full Code Here

Examples of org.jacoco.report.ILanguageNames

        line.startsWith("<?xml version=\"1.0\" encoding=\"UTF-16\""));
  }

  @Test
  public void testGetLanguageNames() throws Exception {
    ILanguageNames names = new ILanguageNames() {
      public String getPackageName(String vmname) {
        return null;
      }

      public String getQualifiedClassName(String vmname) {
View Full Code Here

Examples of org.jacoco.report.ILanguageNames

    assertEquals(HEADER, lines.get(0));
  }

  @Test
  public void testGetLanguageNames() throws Exception {
    ILanguageNames names = new ILanguageNames() {
      public String getPackageName(String vmname) {
        return null;
      }

      public String getQualifiedClassName(String vmname) {
View Full Code Here

Examples of org.jacoco.report.ILanguageNames

    assertEquals(HEADER, lines.get(0));
  }

  @Test
  public void testGetLanguageNames() throws Exception {
    ILanguageNames names = new ILanguageNames() {
      public String getPackageName(String vmname) {
        return null;
      }

      public String getQualifiedClassName(String vmname) {
View Full Code Here

Examples of org.jacoco.report.ILanguageNames

  private ClassRowWriter writer;

  @Before
  public void setup() throws Exception {
    ILanguageNames names = new ILanguageNames() {
      public String getClassName(String vmname, String vmsignature,
          String vmsuperclass, String[] vminterfaces) {
        return vmname;
      }
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.