public class WritableAssertionInfo extends java.lang.Object implements AssertionInfo
| Modifier and Type | Field and Description |
|---|---|
private Description |
description |
private java.lang.String |
overridingErrorMessage |
private Representation |
representation |
| Constructor and Description |
|---|
WritableAssertionInfo() |
| Modifier and Type | Method and Description |
|---|---|
Description |
description()
Returns the description of an assertion.
|
void |
description(Description newDescription)
Sets the description of an assertion.
|
void |
description(java.lang.String newDescription,
java.lang.Object... args)
Sets the description of an assertion.
|
java.lang.String |
descriptionText()
Returns the text of this object's description, or
null if such description is null. |
java.lang.String |
overridingErrorMessage()
Returns the message that, if specified, will replace the default message of an assertion failure.
|
void |
overridingErrorMessage(java.lang.String newErrorMessage)
Sets the message that will replace the default message of an assertion failure.
|
Representation |
representation() |
java.lang.String |
toString() |
void |
useBinaryRepresentation() |
void |
useHexadecimalRepresentation() |
void |
useRepresentation(Representation newRepresentation) |
void |
useUnicodeRepresentation() |
private java.lang.String overridingErrorMessage
private Description description
private Representation representation
public java.lang.String overridingErrorMessage()
overridingErrorMessage in interface AssertionInfopublic void overridingErrorMessage(java.lang.String newErrorMessage)
newErrorMessage - the new message. It can be null.public Description description()
description in interface AssertionInfopublic java.lang.String descriptionText()
null if such description is null.null if such description is null.public void description(java.lang.String newDescription,
java.lang.Object... args)
newDescription - the new description.args - if newDescription is a format String, args is argument of String.format(String, Object...)java.lang.NullPointerException - if the given description is null.description(Description)public void description(Description newDescription)
EmptyTextDescription as
argument.newDescription - the new description.java.lang.NullPointerException - if the given description is null.public Representation representation()
representation in interface AssertionInfopublic void useHexadecimalRepresentation()
public void useUnicodeRepresentation()
public void useBinaryRepresentation()
public void useRepresentation(Representation newRepresentation)
public java.lang.String toString()
toString in class java.lang.Object