Class ShouldContainsValue

java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.db.error.ShouldContainsValue
All Implemented Interfaces:
org.assertj.core.error.ErrorMessageFactory

public class ShouldContainsValue extends org.assertj.core.error.BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that values are contained in values.
Author:
Régis Pouiller
  • Field Summary

    Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory

    arguments, format
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.assertj.core.error.ErrorMessageFactory
    Creates a new ShouldContainsValue.
    static org.assertj.core.error.ErrorMessageFactory
    shouldContainsValue(Object actual, Object expected, Object value, int index)
    Creates a new ShouldContainsValue.

    Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory

    create, create, create, equals, hashCode, toString, unquotedString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • shouldContainsValue

      public static org.assertj.core.error.ErrorMessageFactory shouldContainsValue(Object actual, Object expected, Object value, int index)
      Creates a new ShouldContainsValue.
      Parameters:
      actual - The actual values in the failed assertion.
      expected - The expected values to compare to.
      value - The value which is not found.
      index - The index of the value which is not found.
      Returns:
      the created ErrorMessageFactory.
    • shouldContainsValue

      public static org.assertj.core.error.ErrorMessageFactory shouldContainsValue(int index)
      Creates a new ShouldContainsValue.
      Parameters:
      index - The index of the value which is not found.
      Returns:
      the created ErrorMessageFactory.