Package org.testng.eclipse.ui.tree

Source Code of org.testng.eclipse.ui.tree.TestMethodTreeItem

package org.testng.eclipse.ui.tree;

import org.eclipse.swt.widgets.TreeItem;
import org.testng.eclipse.ui.RunInfo;

/**
* A tree node representing a test method (only its name).
*
* @author Cedric Beust <cedric@beust.com>
*/
public class TestMethodTreeItem extends BaseTestMethodTreeItem {

  public TestMethodTreeItem(TreeItem parent, RunInfo runInfo) {
    super(parent, runInfo);
  }

  protected String getLabel() {
    RunInfo runInfo = getRunInfo();
    String result = runInfo.getMethodName() + runInfo.getInvocationCountDisplay();
    return result;
  }
}
TOP

Related Classes of org.testng.eclipse.ui.tree.TestMethodTreeItem

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.