Package org.jacoco.report

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


  public void visitEnd(final ISourceFileLocator sourceFileLocator)
      throws IOException {
  }

  public void writeContents(final DelimitedWriter writer) throws IOException {
    final ILanguageNames languageNames = reportFile.getLanguageNames();
    final String value = languageNames.getPackageName(packageName);

    parent.writeContents(writer);
    writer.write(value);
  }
View Full Code Here

    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

    this.writeContents(writer);

  }

  public void writeContents(final DelimitedWriter writer) throws IOException {
    final ILanguageNames languageNames = reportFile.getLanguageNames();
    final String className = languageNames.getClassName(node.getName());
    writer.write(className);

    for (final CounterEntity entity : CsvReportFile.COUNTERS) {

      final ICounter counter = node.getCounter(entity);
View Full Code Here

  public void visitEnd(final ISourceFileLocator sourceFileLocator)
      throws IOException {
  }

  public void writeContents(final DelimitedWriter writer) throws IOException {
    final ILanguageNames languageNames = reportFile.getLanguageNames();
    final String value = languageNames.getPackageName(packageName);

    parent.writeContents(writer);
    writer.write(value);
  }
View Full Code Here

    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

      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

        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

    this.writeContents(writer);

  }

  public void writeContents(final DelimitedWriter writer) throws IOException {
    final ILanguageNames languageNames = reportFile.getLanguageNames();
    final String className = languageNames.getClassName(node.getName(),
        node.getSignature(), node.getSuperName(), node
            .getInterfaceNames());
    writer.write(className);

    for (final CounterEntity entity : CsvReportFile.COUNTERS) {
View Full Code Here

    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

TOP

Related Classes of org.jacoco.report.ILanguageNames

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.