public class RetryRule extends Object implements org.junit.rules.TestRule
Constructor and Description |
---|
RetryRule(int maxAttempts)
Constructs the retry rule with a maximum number of attempts.
|
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
int |
getMaxAttempts()
Gets the maximum number of times to run the test.
|
public RetryRule(int maxAttempts)
maxAttempts
- a maximum number of attempts.public int getMaxAttempts()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
Copyright © 2019. All rights reserved.