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

public class ByteSizeEqualsMatcher extends org.hamcrest.TypeSafeMatcher<ByteSizeValue>
Equality matcher for ByteSizeValue that has a nice description of failures.
  • Method Details

    • byteSizeEquals

      public static ByteSizeEqualsMatcher byteSizeEquals(ByteSizeValue expected)
    • matchesSafely

      protected boolean matchesSafely(ByteSizeValue byteSizeValue)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeMatcher<ByteSizeValue>
    • describeTo

      public void describeTo(org.hamcrest.Description description)
    • describeMismatchSafely

      protected void describeMismatchSafely(ByteSizeValue item, org.hamcrest.Description mismatchDescription)
      Overrides:
      describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<ByteSizeValue>