Package org.assertj.core.description
Class JoinDescription
java.lang.Object
org.assertj.core.description.Description
org.assertj.core.description.JoinDescription
The
Description
combining multiple Description
s. It'll honor the nested descriptions and will indent
them as appropriate.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
The wrapper forStringBuilder
aware of indentation. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final String
Delimiter 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 Description
checkNotNull
(Description description) boolean
int
hashCode()
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 containsnull
elements or descriptions itself isnull
.
-
-
Method Details
-
checkNotNull
-
value
- Specified by:
value
in classDescription
- Returns:
- the value of this description.
-
hashCode
public int hashCode() -
equals
-
appendIndentedValueTo
private JoinDescription.IndentedAppendable appendIndentedValueTo(JoinDescription.IndentedAppendable indentableBuilder)
-