| 12 | import com.force.config.ConfigurationManager; |
| 13 | |
| 14 | public class RetryTests extends ProjectHooks implements IRetryAnalyzer, IAnnotationTransformer{ |
| 15 | |
| 16 | int retryCount = 0; |
| 17 | |
| 18 | @Override |
| 19 | public boolean retry(ITestResult result) { |
| 20 | if(retryCount < ConfigurationManager.configuration().maxRetry()) { |
| 21 | retryCount++; |
| 22 | return true; |
| 23 | } |
| 24 | return false; |
| 25 | } |
| 26 | |
| 27 | @SuppressWarnings("rawtypes") |
| 28 | @Override |
| 29 | public void transform(ITestAnnotation annotation, Class testClass, Constructor testConstructor, Method testMethod) { |
| 30 | annotation.setRetryAnalyzer(this.getClass()); |
| 31 | } |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | } |
nothing calls this directly
no outgoing calls
no test coverage detected