Class ShouldContainValue

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldContainValue
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies a map contains a value.
    Author:
    Nicolas François
    • Method Detail

      • shouldContainValue

        public static ErrorMessageFactory shouldContainValue​(java.lang.Object actual,
                                                             java.lang.Object value)
        Creates a new ShouldContainValue.
        Parameters:
        actual - the actual value in the failed assertion.
        Returns:
        the created ErrorMessageFactory.