|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.assertj.core.api.WritableAssertionInfo
public class WritableAssertionInfo
Writable information about an assertion.
| Constructor Summary | |
|---|---|
WritableAssertionInfo()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WritableAssertionInfo()
| Method Detail |
|---|
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)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||