Skip to content

Commit

Permalink
Commented outdated method
Browse files Browse the repository at this point in the history
  • Loading branch information
martingrossmann committed Nov 6, 2024
1 parent cdcbad7 commit d493e0f
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,22 +293,22 @@ public void afterInvocation(
pAfterInvocation(method, testResult, context);
}

private static String getMethodName(ITestResult testResult) {
ITestNGMethod testMethod = testResult.getMethod();
String methodName = testMethod.getMethodName();
Object[] parameters = testResult.getParameters();
if (parameters != null) {
methodName += "(";
for (Object parameter : parameters) {
methodName += parameter + ", ";
}
if (parameters.length > 0) {
methodName = methodName.substring(0, methodName.length() - 2);
}
methodName += ")";
}
return methodName;
}
// private static String getMethodName(ITestResult testResult) {
// ITestNGMethod testMethod = testResult.getMethod();
// String methodName = testMethod.getMethodName();
// Object[] parameters = testResult.getParameters();
// if (parameters != null) {
// methodName += "(";
// for (Object parameter : parameters) {
// methodName += parameter + ", ";
// }
// if (parameters.length > 0) {
// methodName = methodName.substring(0, methodName.length() - 2);
// }
// methodName += ")";
// }
// return methodName;
// }

/**
* Override after invocation, to visualize threads and finish reporting.
Expand Down

0 comments on commit d493e0f

Please sign in to comment.