Package org.assertj.core.description
Class JoinDescription
java.lang.Object
org.assertj.core.description.Description
org.assertj.core.description.JoinDescription
The
Description combining multiple Descriptions. It'll honor the nested descriptions and will indent
them as appropriate.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classThe wrapper forStringBuilderaware of indentation. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final StringDelimiter string betweendescriptions.(package private) final Collection<Description> private static final String(package private) final String(package private) final String -
Constructor Summary
ConstructorsConstructorDescriptionJoinDescription(String prefix, String suffix, Collection<Description> descriptions) Creates a new.JoinDescription -
Method Summary
Modifier and TypeMethodDescriptionappendIndentedValueTo(JoinDescription.IndentedAppendable indentableBuilder) private static DescriptioncheckNotNull(Description description) booleaninthashCode()value()Methods inherited from class org.assertj.core.description.Description
emptyIfNull, mostRelevantDescription, toString
-
Field Details
-
DEFAULT_INDENTATION
private static final int DEFAULT_INDENTATION- See Also:
-
LINE_SEPARATOR
-
DELIMITER
Delimiter string betweendescriptions. -
descriptions
-
prefix
-
suffix
-
-
Constructor Details
-
JoinDescription
Creates a new.JoinDescription- Parameters:
prefix- The beginning part of this description.suffix- The ending part of this description.descriptions- The descriptions to combine.- Throws:
NullPointerException- if the given prefix isnull.NullPointerException- if the given suffix isnull.NullPointerException- if the given descriptions containsnullelements or descriptions itself isnull.
-
-
Method Details
-
checkNotNull
-
value
- Specified by:
valuein classDescription- Returns:
- the value of this description.
-
hashCode
public int hashCode() -
equals
-
appendIndentedValueTo
private JoinDescription.IndentedAppendable appendIndentedValueTo(JoinDescription.IndentedAppendable indentableBuilder)
-