Package org.fest.assertions.core
Class WritableAssertionInfo
- java.lang.Object
 - 
- org.fest.assertions.core.WritableAssertionInfo
 
 
- 
- All Implemented Interfaces:
 AssertionInfo
public class WritableAssertionInfo extends java.lang.Object implements AssertionInfo
Writable information about an assertion.- Author:
 - Alex Ruiz, Yvonne Wang
 
 
- 
- 
Constructor Summary
Constructors Constructor Description WritableAssertionInfo() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Descriptiondescription()Returns the description of an assertion.voiddescription(java.lang.String newDescription)Sets the description of an assertion.voiddescription(Description newDescription)Sets the description of an assertion.java.lang.StringdescriptionText()Returns the text of this object's description, ornullif such description isnull.java.lang.StringoverridingErrorMessage()Returns the message that, if specified, will replace the default message of an assertion failure.voidoverridingErrorMessage(java.lang.String newErrorMessage)Sets the message that will replace the default message of an assertion failure.java.lang.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
overridingErrorMessage
public java.lang.String 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
public void overridingErrorMessage(java.lang.String newErrorMessage)
Sets the message that will replace the default message of an assertion failure.- Parameters:
 newErrorMessage- the new message. It can benull.
 
- 
description
public Description description()
Returns the description of an assertion.- Specified by:
 descriptionin interfaceAssertionInfo- Returns:
 - the description of an assertion.
 
 
- 
descriptionText
public java.lang.String 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
public void description(java.lang.String newDescription)
Sets the description of an assertion.- Parameters:
 newDescription- the new description.- Throws:
 java.lang.NullPointerException- if the given description isnull.- See Also:
 description(Description)
 
- 
description
public void description(Description newDescription)
Sets the description of an assertion. To remove or clear the description, pass aas argument.EmptyTextDescription- Parameters:
 newDescription- the new description.- Throws:
 java.lang.NullPointerException- if the given description isnull.
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -