Package org.fest.assertions.core
Class WritableAssertionInfo
java.lang.Object
org.fest.assertions.core.WritableAssertionInfo
- All Implemented Interfaces:
AssertionInfo
Writable information about an assertion.
- Author:
- Alex Ruiz, Yvonne Wang
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of an assertion.voiddescription(String newDescription) Sets the description of an assertion.voiddescription(Description newDescription) Sets the description of an assertion.Returns the text of this object's description, ornullif such description isnull.Returns the message that, if specified, will replace the default message of an assertion failure.voidoverridingErrorMessage(String newErrorMessage) Sets the message that will replace the default message of an assertion failure.toString()
-
Constructor Details
-
WritableAssertionInfo
public WritableAssertionInfo()
-
-
Method Details
-
overridingErrorMessage
Returns the message that, if specified, will replace the default message of an assertion failure.- Specified by:
overridingErrorMessagein interfaceAssertionInfo- Returns:
- the message that, if specified, will replace the default message of an assertion failure.
-
overridingErrorMessage
Sets the message that will replace the default message of an assertion failure.- Parameters:
newErrorMessage- the new message. It can benull.
-
description
Returns the description of an assertion.- Specified by:
descriptionin interfaceAssertionInfo- Returns:
- the description of an assertion.
-
descriptionText
Returns the text of this object's description, ornullif such description isnull.- Returns:
- the text of this object's description, or
nullif such description isnull.
-
description
Sets the description of an assertion.- Parameters:
newDescription- the new description.- Throws:
NullPointerException- if the given description isnull.- See Also:
-
description
Sets the description of an assertion. To remove or clear the description, pass aas argument.EmptyTextDescription- Parameters:
newDescription- the new description.- Throws:
NullPointerException- if the given description isnull.
-
toString
-