public class WritableAssertionInfo extends java.lang.Object implements AssertionInfo
| 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)
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.
|
java.lang.String |
toString() |
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)
newDescription - the new description.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 java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2007–2018. All rights reserved.