Class ShouldBeValueType

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

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

    • shouldBeValueType

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

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