Package at.willhaben.willtest.rule
Class Retry
- java.lang.Object
-
- at.willhaben.willtest.rule.Retry
-
- All Implemented Interfaces:
org.junit.rules.TestRule
@Deprecated public class Retry extends java.lang.Object implements org.junit.rules.TestRuleDeprecated.This rule gives you the possibility to retry a test if the exception matches a givenMatcher. It is possible to change the maximum of retries, default configuration is 3.
-
-
Constructor Summary
Constructors Constructor Description Retry(org.hamcrest.Matcher<? extends java.lang.Throwable> matcher)Deprecated.Retries the test if the given matcher matches the exception thrown.Retry(org.hamcrest.Matcher<? extends java.lang.Throwable> matcher, int maximalTrials)Deprecated.Retries the test if the given matcher matches the exception thrown.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description)Deprecated.
-
-
-
Constructor Detail
-
Retry
public Retry(org.hamcrest.Matcher<? extends java.lang.Throwable> matcher)
Deprecated.Retries the test if the given matcher matches the exception thrown. Maximum number of retries is 3- Parameters:
matcher- if the matcher matches the exception the test will be retried
-
Retry
public Retry(org.hamcrest.Matcher<? extends java.lang.Throwable> matcher, int maximalTrials)Deprecated.Retries the test if the given matcher matches the exception thrown. Maximum number of retries is 3- Parameters:
matcher- if the matcher matches the exception the test will be retriedmaximalTrials- no of maximal trials
-
-