Class ShouldBe

    • Constructor Detail

    • Method Detail

      • shouldBe

        public static <T> ErrorMessageFactory shouldBe​(T actual,
                                                       Condition<? super T> condition)
        Creates a new ShouldBe.
        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.