public class Retry extends Object implements org.junit.rules.TestRule
Matcher.
It is possible to change the maximum of retries, default configuration is .| Constructor and Description |
|---|
Retry(org.hamcrest.Matcher<? extends Throwable> matcher)
Retries the test if the given matcher matches the exception thrown.
|
Retry(org.hamcrest.Matcher<? extends Throwable> matcher,
int maximalTrials)
Retries the test if the given matcher matches the exception thrown.
|
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
public Retry(org.hamcrest.Matcher<? extends Throwable> matcher)
matcher - if the matcher matches the exception the test will be retriedpublic Retry(org.hamcrest.Matcher<? extends Throwable> matcher, int maximalTrials)
matcher - if the matcher matches the exception the test will be retriedmaximalTrials - no of maximal trialsCopyright © 2018 willhaben internet service GmbH & Co KG. All rights reserved.