Package jadex.base.test
Class TestReport
- java.lang.Object
- 
- jadex.base.test.TestReport
 
- 
 public class TestReport extends java.lang.ObjectA test report captures the description and results of a test.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringdescriptionThe test description.protected java.lang.StringnameThe test name .protected java.lang.StringreasonThe failure reason.protected booleansucceededThe test success.
 - 
Constructor SummaryConstructors Constructor Description TestReport()Create a new test report.TestReport(java.lang.String name, java.lang.String description)Create a new test report.TestReport(java.lang.String name, java.lang.String description, boolean succeded, java.lang.String reason)Create a new test report.TestReport(java.lang.String name, java.lang.String description, java.lang.Exception reason)Create a new test report.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Get the description.java.lang.StringgetName()Get the name.java.lang.StringgetReason()Get the failure reason.booleanisFinished()Is the test finished, i.e.booleanisSucceeded()Has the test succeeded.voidsetDescription(java.lang.String description)Set the description.voidsetFailed(java.lang.Exception reason)Set the report result to failed and set the failure reason.voidsetFailed(java.lang.String reason)Set the report result to failed and set the failure reason.voidsetName(java.lang.String name)Set the name.voidsetReason(java.lang.String reason)Set the failure reason.voidsetSucceeded(boolean succeded)Set the test success.java.lang.StringtoString()Returns a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
TestReportpublic TestReport() Create a new test report.
 - 
TestReportpublic TestReport(java.lang.String name, java.lang.String description)Create a new test report.
 - 
TestReportpublic TestReport(java.lang.String name, java.lang.String description, boolean succeded, java.lang.String reason)Create a new test report.
 - 
TestReportpublic TestReport(java.lang.String name, java.lang.String description, java.lang.Exception reason)Create a new test report.
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() Get the name.- Returns:
- The name.
 
 - 
setNamepublic void setName(java.lang.String name) Set the name.- Parameters:
- name- The name.
 
 - 
getDescriptionpublic java.lang.String getDescription() Get the description.- Returns:
- The description.
 
 - 
setDescriptionpublic void setDescription(java.lang.String description) Set the description.- Parameters:
- description- The description.
 
 - 
isSucceededpublic boolean isSucceeded() Has the test succeeded.- Returns:
- True, if test was successful.
 
 - 
isFinishedpublic boolean isFinished() Is the test finished, i.e. failed or succeeded?
 - 
setSucceededpublic void setSucceeded(boolean succeded) Set the test success.- Parameters:
- succeded- True on success.
 
 - 
getReasonpublic java.lang.String getReason() Get the failure reason.- Returns:
- The failure reason.
 
 - 
setReasonpublic void setReason(java.lang.String reason) Set the failure reason.- Parameters:
- reason- The failure reason.
 
 - 
setFailedpublic void setFailed(java.lang.Exception reason) Set the report result to failed and set the failure reason.- Parameters:
- reason- The failure reason.
 
 - 
setFailedpublic void setFailed(java.lang.String reason) Set the report result to failed and set the failure reason.- Parameters:
- reason- The failure reason.
 
 - 
toStringpublic java.lang.String toString() Returns a string representation of the object. In general, thetoStringmethod 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.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- a string representation of the object.
 
 
- 
 
-