Class ShouldHave

    • Constructor Detail

      • ShouldHave

        private ShouldHave​(Object actual,
                           Condition<?> condition)
    • Method Detail

      • shouldHave

        public static <T> ErrorMessageFactory shouldHave​(T actual,
                                                         Condition<? super T> condition)
        Creates a new ShouldHave.
        Type Parameters:
        T - guarantees that the type of the actual value and the generic type of the Condition are the same.
        Parameters:
        actual - the actual value in the failed assertion.
        condition - the Condition.
        Returns:
        the created ErrorMessageFactory.