Class ShouldContainValue

java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.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 Details

    • shouldContainValue

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

      public static ErrorMessageFactory shouldContainValue(Object actual, Condition<?> valueCondition)
      Creates a new ShouldContainValue.
      Parameters:
      actual - the actual map in the failed assertion.
      valueCondition - value condition.
      Returns:
      the created ErrorMessageFactory.