Class RetryRule
java.lang.Object
org.apache.sling.commons.testing.junit.RetryRule
- All Implemented Interfaces:
org.junit.rules.TestRule
JUnit Rule that implements retries, see tests for usage example
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT_DEFAULT_TIMEOUT_MSEC
public static final int DEFAULT_DEFAULT_TIMEOUT_MSEC- See Also:
-
DEFAULT_DEFAULT_INTERVAL_MSEC
public static final int DEFAULT_DEFAULT_INTERVAL_MSEC- See Also:
-
-
Constructor Details
-
RetryRule
public RetryRule()Create a RetryRule with default values for default timeout and interval -
RetryRule
public RetryRule(long defaultTimeout, long defaultInterval) Create a RetryRule with specific values for default timeout and interval
-
-
Method Details