Skip to content

Commit

Permalink
feat(jans-auth-server): adapted test code after testng upgrade 6.14.3…
Browse files Browse the repository at this point in the history
… -> 7.8.0 #6791 (#6792)

Signed-off-by: YuriyZ <yzabrovarniy@gmail.com>
  • Loading branch information
yuriyz committed Nov 28, 2023
1 parent 4fe4806 commit 99377e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public boolean retry(ITestResult result) {
retryCount++;
return true;
} else {
result.getTestContext().getFailedTests().addResult(result, result.getMethod());
result.getTestContext().getFailedTests().addResult(result);
}
return false;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.jans.as.client;

import org.testng.IAnnotationTransformer;
import org.testng.IRetryAnalyzer;
import org.testng.annotations.ITestAnnotation;

import java.lang.reflect.Constructor;
Expand All @@ -13,9 +12,6 @@
public class RetryListener implements IAnnotationTransformer {
@Override
public void transform(ITestAnnotation annotation, Class testClass, Constructor constructor, Method testMethod) {
IRetryAnalyzer retry = annotation.getRetryAnalyzer();
if (retry == null) {
annotation.setRetryAnalyzer(RetryAnalyzer.class);
}
annotation.setRetryAnalyzer(RetryAnalyzer.class);
}
}

0 comments on commit 99377e4

Please sign in to comment.