public class WritableAssertionInfo extends Object implements AssertionInfo
| Constructor and Description |
|---|
WritableAssertionInfo() |
WritableAssertionInfo(Representation customRepresentation) |
| 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.
|
Representation |
representation() |
String |
toString() |
void |
useBinaryRepresentation() |
void |
useHexadecimalRepresentation() |
void |
useRepresentation(Representation newRepresentation) |
void |
useUnicodeRepresentation() |
public WritableAssertionInfo(Representation customRepresentation)
public WritableAssertionInfo()
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.public Representation representation()
representation in interface AssertionInfopublic void useHexadecimalRepresentation()
public void useUnicodeRepresentation()
public void useBinaryRepresentation()
public void useRepresentation(Representation newRepresentation)
Copyright © 2014–2016 AssertJ. All rights reserved.