public static String detailedMethodName(ITestNGMethod method, boolean fqn) { String tempName = annotationFormFor(method); if (! tempName.isEmpty()) { tempName += " "; } return tempName + (fqn ? method.toString() : method.getMethodName()); }
public static String detailedMethodName(ITestNGMethod method, boolean fqn) { String tempName = annotationFormFor(method); if (!tempName.isEmpty()) { tempName += " "; } return tempName + (fqn ? method.toString() : method.getMethodName()); }
String tempName = Utils.annotationFormFor(method); if (! tempName.isEmpty()) { buf.append(Utils.annotationFormFor(method)).append(" ");
/** * @param method method to be described * @return FQN of a class + method declaration for a method passed in ie. * test.triangle.CheckCount.testCheckCount(java.lang.String) */ private String getMethodDeclaration(ITestNGMethod method) { // see Utils.detailedMethodName // perhaps should rather adopt the original method instead ConstructorOrMethod m = method.getConstructorOrMethod(); StringBuilder buf = new StringBuilder(); buf.append("\""); if (suiteName != null) { buf.append(suiteName); } else { buf.append("UNKNOWN"); } buf.append("\""); buf.append(" - "); String tempName = Utils.annotationFormFor(method); if (!tempName.isEmpty()) { buf.append(Utils.annotationFormFor(method)).append(" "); } buf.append(m.getDeclaringClass().getName()); buf.append("."); buf.append(m.getName()); buf.append("(").append(m.stringifyParameterTypes()).append(")"); return buf.toString(); }