Class ShouldBeValueTypeOfAny

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

public class ShouldBeValueTypeOfAny extends org.assertj.core.error.BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a value is of any types.
Author:
Régis Pouiller
  • Method Details

    • shouldBeValueTypeOfAny

      public static org.assertj.core.error.ErrorMessageFactory shouldBeValueTypeOfAny(Value actual, ValueType tested, ValueType... expected)
      Creates a new ShouldBeValueTypeOfAny.
      Parameters:
      actual - The actual value in the failed assertion.
      tested - The tested type.
      expected - The expected types.
      Returns:
      the created ErrorMessageFactory.
    • shouldBeValueTypeOfAny

      public static org.assertj.core.error.ErrorMessageFactory shouldBeValueTypeOfAny(int index, Value actual, ValueType tested, ValueType... expected)
      Creates a new ShouldBeValueTypeOfAny.
      Parameters:
      index - The index of the value.
      actual - The actual value in the failed assertion.
      tested - The tested type.
      expected - The expected types.
      Returns:
      the created ErrorMessageFactory.