Class DurationMatcher
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<Duration>
org.eclipse.microprofile.fault.tolerance.tck.util.DurationMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<Duration>,org.hamcrest.SelfDescribing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DurationMatcherMatcher that asserts that a duration is within 100ms oftargetstatic DurationMatcherMatcher that asserts that a duration is withinmarginoftargetvoiddescribeTo(org.hamcrest.Description description) protected booleanmatchesSafely(Duration item, org.hamcrest.Description mismatchDescription) Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
-
Constructor Details
-
DurationMatcher
-
-
Method Details
-
describeTo
public void describeTo(org.hamcrest.Description description) -
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeDiagnosingMatcher<Duration>
-
closeTo
Matcher that asserts that a duration is withinmarginoftarget- Parameters:
target- the target durationmargin- the margin- Returns:
- the matcher
-
closeTo
Matcher that asserts that a duration is within 100ms oftarget- Parameters:
target- the target duration- Returns:
- the matcher
-