public class TestReport extends Object
Constructor and Description |
---|
TestReport()
Create a new test report.
|
TestReport(String name,
String description)
Create a new test report.
|
TestReport(String name,
String description,
boolean succeded,
String reason)
Create a new test report.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get the description.
|
String |
getName()
Get the name.
|
String |
getReason()
Get the failure reason.
|
boolean |
isSucceeded()
Has the test succeeded.
|
void |
setDescription(String description)
Set the description.
|
void |
setFailed(String reason)
Set the report result to failed and set the failurereason.
|
void |
setName(String name)
Set the name.
|
void |
setReason(String reason)
Set the failure reason.
|
void |
setSucceeded(boolean succeded)
Set the test success.
|
String |
toString()
Returns a string representation of the object.
|
public String getName()
public void setName(String name)
name
- The name.public String getDescription()
public void setDescription(String description)
description
- The description.public boolean isSucceeded()
public void setSucceeded(boolean succeded)
succeded
- True on success.public String getReason()
public void setReason(String reason)
reason
- The failure reason.public void setFailed(String reason)
reason
- The failure reason.public 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.Copyright © 2012. All Rights Reserved.