Class NeptuneFeatureMatcher<T>

    • Field Detail

      • mismatchDescriptions

        protected final List<org.hamcrest.Description> mismatchDescriptions
      • expectedTypes

        protected final Class<? extends T>[] expectedTypes
      • isNullSafe

        protected final boolean isNullSafe
    • Constructor Detail

      • NeptuneFeatureMatcher

        @SafeVarargs
        protected NeptuneFeatureMatcher​(boolean isNullSafe,
                                        Class<? extends T>... expectedTypes)
      • NeptuneFeatureMatcher

        protected NeptuneFeatureMatcher​(boolean isNullSafe)
    • Method Detail

      • concatMatcherDescriptions

        public static String concatMatcherDescriptions​(String delimiter,
                                                       org.hamcrest.Matcher<?>... matchers)
        Concatenates descriptions of matchers into one using a delimiter string.
        Parameters:
        delimiter - is a delimiter string
        matchers - are matchers whose string descriptions should be concatenated
        Returns:
        a concatenated string
      • concatMatcherDescriptions

        public static String concatMatcherDescriptions​(org.hamcrest.Matcher<?>... matchers)
        Concatenates descriptions of matchers into one using SPACE as delimiter string.
        Parameters:
        matchers - are matchers whose string descriptions should be concatenated
        Returns:
        a concatenated string
      • prerequisiteChecking

        protected boolean prerequisiteChecking​(Object actual)
      • matches

        public boolean matches​(Object actual)
        Specified by:
        matches in interface org.hamcrest.Matcher<T>
      • checkFeature

        protected boolean checkFeature​(Object actual)
      • featureMatches

        protected abstract boolean featureMatches​(T toMatch)
      • appendMismatchDescription

        protected void appendMismatchDescription​(MismatchDescriber describer)
      • appendMismatchDescription

        protected void appendMismatchDescription​(org.hamcrest.Description description)
      • appendMismatchDescription

        protected final void appendMismatchDescription​(org.hamcrest.Matcher<?> matcher,
                                                       Object o)
      • describeTo

        public final void describeTo​(org.hamcrest.Description description)
        Specified by:
        describeTo in interface org.hamcrest.SelfDescribing
      • describeMismatch

        public final void describeMismatch​(Object item,
                                           org.hamcrest.Description mismatchDescription)
        Specified by:
        describeMismatch in interface org.hamcrest.Matcher<T>
      • _dont_implement_Matcher___instead_extend_BaseMatcher_

        public void _dont_implement_Matcher___instead_extend_BaseMatcher_()
        Specified by:
        _dont_implement_Matcher___instead_extend_BaseMatcher_ in interface org.hamcrest.Matcher<T>