Class GroupTypeDescription

java.lang.Object
org.assertj.core.error.GroupTypeDescription

public class GroupTypeDescription extends Object
Generates a description for the type of a group of elements. The description is used in the error message.
  • Constructor Details

    • GroupTypeDescription

      public GroupTypeDescription(String groupTypeName, String elementTypeName)
  • Method Details

    • getElementTypeName

      public String getElementTypeName()
    • getGroupTypeName

      public String getGroupTypeName()
    • getGroupTypeDescription

      public static GroupTypeDescription getGroupTypeDescription(Object actual)
      Creates a new GroupTypeDescription for a group of elements.
      Parameters:
      actual - the group of elements.
      Returns:
      the created GroupTypeDescription object
    • getGroupTypeDescription

      public static GroupTypeDescription getGroupTypeDescription(Class<?> clazz)
      Creates a new GroupTypeDescription for a group of elements.
      Parameters:
      clazz - the class for the group of elements.
      Returns:
      the created GroupTypeDescription object