Package org.elasticsearch.test
Class ByteSizeEqualsMatcher
java.lang.Object
org.hamcrest.BaseMatcher<ByteSizeValue>
org.hamcrest.TypeSafeMatcher<ByteSizeValue>
org.elasticsearch.test.ByteSizeEqualsMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<ByteSizeValue>
,org.hamcrest.SelfDescribing
Equality matcher for
ByteSizeValue
that has a nice description of failures.-
Method Summary
Modifier and TypeMethodDescriptionstatic ByteSizeEqualsMatcher
byteSizeEquals
(ByteSizeValue expected) protected void
describeMismatchSafely
(ByteSizeValue item, org.hamcrest.Description mismatchDescription) void
describeTo
(org.hamcrest.Description description) protected boolean
matchesSafely
(ByteSizeValue byteSizeValue) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Method Details
-
byteSizeEquals
-
matchesSafely
- Specified by:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<ByteSizeValue>
-
describeTo
public void describeTo(org.hamcrest.Description description) -
describeMismatchSafely
protected void describeMismatchSafely(ByteSizeValue item, org.hamcrest.Description mismatchDescription) - Overrides:
describeMismatchSafely
in classorg.hamcrest.TypeSafeMatcher<ByteSizeValue>
-