Package org.assertj.core.error
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.
-
-
Field Summary
Fields Modifier and Type Field Description private StringelementTypeNameprivate StringgroupTypeNameprivate static intSPLITERATORS_CLASS_STACK_TRACE_NUM
-
Constructor Summary
Constructors Constructor Description GroupTypeDescription(String groupTypeName, String elementTypeName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetElementTypeName()static GroupTypeDescriptiongetGroupTypeDescription(Class<?> clazz)Creates a newfor a group of elements.GroupTypeDescriptionstatic GroupTypeDescriptiongetGroupTypeDescription(Object actual)Creates a newfor a group of elements.GroupTypeDescriptionStringgetGroupTypeName()
-
-
-
Field Detail
-
SPLITERATORS_CLASS_STACK_TRACE_NUM
private static final int SPLITERATORS_CLASS_STACK_TRACE_NUM
- See Also:
- Constant Field Values
-
groupTypeName
private String groupTypeName
-
elementTypeName
private String elementTypeName
-
-
Method Detail
-
getElementTypeName
public String getElementTypeName()
-
getGroupTypeName
public String getGroupTypeName()
-
getGroupTypeDescription
public static GroupTypeDescription getGroupTypeDescription(Object actual)
Creates a newfor a group of elements.GroupTypeDescription- Parameters:
actual- the group of elements.- Returns:
- the created GroupTypeDescription object
-
getGroupTypeDescription
public static GroupTypeDescription getGroupTypeDescription(Class<?> clazz)
Creates a newfor a group of elements.GroupTypeDescription- Parameters:
clazz- the class for the group of elements.- Returns:
- the created GroupTypeDescription object
-
-