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 String
elementTypeName
private String
groupTypeName
private static int
SPLITERATORS_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 String
getElementTypeName()
static GroupTypeDescription
getGroupTypeDescription(Object actual)
Creates a new
for a group of elements.GroupTypeDescription
String
getGroupTypeName()
-
-
-
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 new
for a group of elements.GroupTypeDescription
- Parameters:
actual
- the group of elements.- Returns:
- the created GroupTypeDescription object
-
-