Class ShouldBeValueClass

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

public class ShouldBeValueClass extends org.assertj.core.error.BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a value is of a class.
Since:
1.1.0
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
    shouldBeValueClass(int index, Value actual, Class<?> expected)
    Creates a new ShouldBeValueType.
    static org.assertj.core.error.ErrorMessageFactory
    shouldBeValueClass(Value actual, Class<?> expected)
    Creates a new ShouldBeValueClass.

    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

    • shouldBeValueClass

      public static org.assertj.core.error.ErrorMessageFactory shouldBeValueClass(Value actual, Class<?> expected)
      Creates a new ShouldBeValueClass.
      Parameters:
      actual - The actual value in the failed assertion.
      expected - The expected class.
      Returns:
      the created ErrorMessageFactory.
    • shouldBeValueClass

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