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


        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

    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

    Limit limit = rule.createLimit();
    limit.setValue(CounterValue.MISSEDCOUNT.name());
    limit.setMaximum("5");
    checker.setRules(Arrays.asList(rule));

    checker.setLanguageNames(new ILanguageNames() {
      public String getQualifiedClassName(String vmname) {
        return "MyClass";
      }

      public String getQualifiedMethodName(String vmclassname,
View Full Code Here

  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

    this.sessionInfos = sessionInfos;
    this.executionData = new ArrayList<ExecutionData>(executionData);
    this.index = index;
    this.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

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.