Examples of IMethodDescriptor


Examples of org.testng.eclipse.util.signature.IMethodDescriptor

 
  protected void addTestMethod(MethodDeclaration md, String annotationType) {
    if(md.isConstructor()) {
      return; // constructors cannot be marked as test methods
    }
    IMethodDescriptor imd = new ASTMethodDescriptor(md, annotationType);
    m_testMethods.add(imd);
  }
View Full Code Here

Examples of org.testng.eclipse.util.signature.IMethodDescriptor

    IMethodDescriptor imd = new ASTMethodDescriptor(md, annotationType);
    m_testMethods.add(imd);
  }
 
  protected void addFactoryMethod(MethodDeclaration md, String annotationType) {
    IMethodDescriptor imd = new ASTMethodDescriptor(md, annotationType);
    m_factoryMethods.add(imd);
  }
View Full Code Here

Examples of org.testng.eclipse.util.signature.IMethodDescriptor

    if(!content.hasTestMethods()) {
      return;
    }
   
    Set testMethods = content.getTestMethods();
    IMethodDescriptor testMethodDescriptor = new MethodDescriptor((IMethod) ije);
    Properties methodAttrs = new Properties();
    for(Iterator it = testMethods.iterator(); it.hasNext(); ) {
      IMethodDescriptor imd = (IMethodDescriptor) it.next();
      if(imd.equals(testMethodDescriptor)) {
//        attrs.setProperty("annotations", convert(imd.getAnnotationType()));
        methodAttrs.setProperty("name", imd.getName());
      }
    }
   
    buf.push("test", attrs);
    buf.push("methods");
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.