public class WritableAssertionInfo extends 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(String newDescription,
Object... args)
Sets the description of an assertion.
|
String |
descriptionText()
Returns the text of this object's description, or
null if such description is null. |
String |
overridingErrorMessage()
Returns the message that, if specified, will replace the default message of an assertion failure.
|
void |
overridingErrorMessage(String newErrorMessage)
Sets the message that will replace the default message of an assertion failure.
|
String |
toString() |
public String overridingErrorMessage()
overridingErrorMessage in interface AssertionInfopublic void overridingErrorMessage(String newErrorMessage)
newErrorMessage - the new message. It can be null.public Description description()
description in interface AssertionInfopublic String descriptionText()
null if such description is null.null if such description is null.public void description(String newDescription, Object... args)
newDescription - the new description.args - if newDescription is a format String, args is argument of String.format(String, Object...)NullPointerException - if the given description is null.description(Description)public void description(Description newDescription)
EmptyTextDescription as
argument.newDescription - the new description.NullPointerException - if the given description is null.Copyright © 2013 AssertJ. All Rights Reserved.