| Modifier and Type | Field and Description |
|---|---|
| private Description | |
| private static final String | |
| private String | |
| private Supplier | |
| private Representation |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Description | description()
Implements org. |
| public void | description(String
the new description. newDescription, Object... args)Sets the description of an assertion, if given null an empty |
| public void | description(Description
the new description. newDescription)Sets the description of an assertion, if given null an empty |
| public String | Returns: the text of this object's description.Returns the text of this object's description, it is an empty String if no description was set. |
| public boolean | Returns: whether the text of this object's description was set.Returns whether the text of this object's description was set. |
| public static String | |
| public String | overridingErrorMessage()
Implements org. |
| public void | overridingErrorMessage(String
the new message. It can be newErrorMessage)null.Sets the message that will replace the default message of an assertion failure. |
| public void | overridingErrorMessage(Supplier<String>
the new message by a supplier. It can be supplier)null.Sets the lazy fail message that will replace the default message of an assertion failure by using a supplier. |
| public Representation | |
| public String | |
| public void | |
| public void | |
| public void | |
| public void |
| description | back to summary |
|---|---|
| private Description description | |
| EMPTY_STRING | back to summary |
|---|---|
| private static final String EMPTY_STRING | |
| overridingErrorMessage | back to summary |
|---|---|
| private String overridingErrorMessage | |
| overridingErrorMessageSupplier | back to summary |
|---|---|
| private Supplier<String> overridingErrorMessageSupplier | |
| representation | back to summary |
|---|---|
| private Representation representation | |
| WritableAssertionInfo | back to summary |
|---|---|
| public WritableAssertionInfo(Representation customRepresentation) | |
| WritableAssertionInfo | back to summary |
|---|---|
| public WritableAssertionInfo() | |
| description | back to summary |
|---|---|
| public Description description() Implements org. Doc from org. Returns the description of an assertion.
| |
| description | back to summary |
|---|---|
| public void description(String newDescription, Object... args) Sets the description of an assertion, if given null an empty
| |
| description | back to summary |
|---|---|
| public void description(Description newDescription) Sets the description of an assertion, if given null an empty
To remove or clear the description, pass a
| |
| descriptionText | back to summary |
|---|---|
| public String descriptionText() Returns the text of this object's description, it is an empty String if no description was set.
| |
| hasDescription | back to summary |
|---|---|
| public boolean hasDescription() Returns whether the text of this object's description was set.
| |
| mostRelevantDescriptionIn | back to summary |
|---|---|
| public static String mostRelevantDescriptionIn(WritableAssertionInfo info, String newDescription) | |
| overridingErrorMessage | back to summary |
|---|---|
| public String overridingErrorMessage() Implements org. Doc from org. Returns the message that, if specified, will replace the default message of an assertion failure. | |
| overridingErrorMessage | back to summary |
|---|---|
| public void overridingErrorMessage(String newErrorMessage) Sets the message that will replace the default message of an assertion failure.
| |
| overridingErrorMessage | back to summary |
|---|---|
| public void overridingErrorMessage(Supplier<String> supplier) Sets the lazy fail message that will replace the default message of an assertion failure by using a supplier.
| |
| representation | back to summary |
|---|---|
| public Representation representation() Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| useBinaryRepresentation | back to summary |
|---|---|
| public void useBinaryRepresentation() | |
| useHexadecimalRepresentation | back to summary |
|---|---|
| public void useHexadecimalRepresentation() | |
| useRepresentation | back to summary |
|---|---|
| public void useRepresentation(Representation newRepresentation) | |
| useUnicodeRepresentation | back to summary |
|---|---|
| public void useUnicodeRepresentation() | |