Class HasNoneOfReasons

  • All Implemented Interfaces:
    org.hamcrest.Matcher<List<io.fabric8.kubernetes.api.model.Event>>, org.hamcrest.SelfDescribing

    public class HasNoneOfReasons
    extends org.hamcrest.BaseMatcher<List<io.fabric8.kubernetes.api.model.Event>>

    A HasAllOfReasons is custom matcher to check the partial matching of reasons for actual events. Checks at least one match in events.

    • Constructor Detail

      • HasNoneOfReasons

        public HasNoneOfReasons​(Events... eventReasons)
    • Method Detail

      • matches

        public boolean matches​(Object actualValue)
      • describeMismatch

        public void describeMismatch​(Object item,
                                     org.hamcrest.Description description)
        Specified by:
        describeMismatch in interface org.hamcrest.Matcher<List<io.fabric8.kubernetes.api.model.Event>>
        Overrides:
        describeMismatch in class org.hamcrest.BaseMatcher<List<io.fabric8.kubernetes.api.model.Event>>
      • describeTo

        public void describeTo​(org.hamcrest.Description description)
        Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.
        Parameters:
        description - The description to be built or appended to.