public interface TestReport
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorMessage(java.lang.String desc)
Adds new error message to the messages list.
|
void |
addMessage(TestMessage desc)
Adds new message to the messages list.
|
void |
addMessages(TestMessage[] descs)
Adds new messages to the messages list.
|
void |
addWarningMessage(java.lang.String desc)
Adds new warning message to the messages list.
|
boolean |
containsErrorMessages()
Check for error messages.
|
boolean |
containsWarningMessages()
Check for warning messages.
|
TestMessage[] |
getMessages()
Gets array of all messages.
|
void |
includeAllWithPrefix(TestReport rpt,
java.lang.String prefix)
Copies all messages from given message report, adding prefix to each of
them.
|
boolean |
isEmpty()
Checks if report is empty.
|
java.lang.String |
toHTML() |
java.lang.String |
toString()
Returns a string representation of the object.
|
java.lang.String toString()
toString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.toString in class java.lang.ObjectTestMessage[] getMessages()
void addMessage(TestMessage desc)
desc - content and type of new message to insert.void addMessages(TestMessage[] descs)
descs - array of messages to insert.void addErrorMessage(java.lang.String desc)
desc - content of new message to insert.void addWarningMessage(java.lang.String desc)
desc - content of new message to insert.boolean containsErrorMessages()
boolean containsWarningMessages()
boolean isEmpty()
void includeAllWithPrefix(TestReport rpt, java.lang.String prefix)
rpt - another instance of test report to take the messages from.prefix - prefix added to each message, when inserting.java.lang.String toHTML()