Package org.hamcrest

Class BaseMatcher<T>

    • Constructor Detail

      • BaseMatcher

        public BaseMatcher()
    • Method Detail

      • describeMismatch

        public void describeMismatch​(java.lang.Object item,
                                     Description description)
        Description copied from interface: Matcher
        Generate a description of why the matcher has not accepted the item. The description will be part of a larger description of why a matching failed, so it should be concise. This method assumes that matches(item) is false, but will not check this.
        Specified by:
        describeMismatch in interface Matcher<T>
        Parameters:
        item - The item that the Matcher has rejected.
        description - The description to be built or appended to.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object