public class Problem
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents a specific warning or failure.
Modifier and Type | Field and Description |
---|---|
private Device |
device
Information about the associated device.
|
private ProblemDetail |
job
Information about the associated job.
|
private java.lang.String |
message
A message about the problem's result.
|
private java.lang.String |
result
The problem's result.
|
private ProblemDetail |
run
Information about the associated run.
|
private ProblemDetail |
suite
Information about the associated suite.
|
private ProblemDetail |
test
Information about the associated test.
|
Constructor and Description |
---|
Problem() |
Modifier and Type | Method and Description |
---|---|
Problem |
clone() |
boolean |
equals(java.lang.Object obj) |
Device |
getDevice()
Information about the associated device.
|
ProblemDetail |
getJob()
Information about the associated job.
|
java.lang.String |
getMessage()
A message about the problem's result.
|
java.lang.String |
getResult()
The problem's result.
|
ProblemDetail |
getRun()
Information about the associated run.
|
ProblemDetail |
getSuite()
Information about the associated suite.
|
ProblemDetail |
getTest()
Information about the associated test.
|
int |
hashCode() |
void |
setDevice(Device device)
Information about the associated device.
|
void |
setJob(ProblemDetail job)
Information about the associated job.
|
void |
setMessage(java.lang.String message)
A message about the problem's result.
|
void |
setResult(ExecutionResult result)
The problem's result.
|
void |
setResult(java.lang.String result)
The problem's result.
|
void |
setRun(ProblemDetail run)
Information about the associated run.
|
void |
setSuite(ProblemDetail suite)
Information about the associated suite.
|
void |
setTest(ProblemDetail test)
Information about the associated test.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Problem |
withDevice(Device device)
Information about the associated device.
|
Problem |
withJob(ProblemDetail job)
Information about the associated job.
|
Problem |
withMessage(java.lang.String message)
A message about the problem's result.
|
Problem |
withResult(ExecutionResult result)
The problem's result.
|
Problem |
withResult(java.lang.String result)
The problem's result.
|
Problem |
withRun(ProblemDetail run)
Information about the associated run.
|
Problem |
withSuite(ProblemDetail suite)
Information about the associated suite.
|
Problem |
withTest(ProblemDetail test)
Information about the associated test.
|
private ProblemDetail run
Information about the associated run.
private ProblemDetail job
Information about the associated job.
private ProblemDetail suite
Information about the associated suite.
private ProblemDetail test
Information about the associated test.
private Device device
Information about the associated device.
private java.lang.String result
The problem's result.
Allowed values include:
PENDING: A pending condition.
PASSED: A passing condition.
WARNED: A warning condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
ERRORED: An error condition.
STOPPED: A stopped condition.
private java.lang.String message
A message about the problem's result.
public void setRun(ProblemDetail run)
Information about the associated run.
run
- Information about the associated run.public ProblemDetail getRun()
Information about the associated run.
public Problem withRun(ProblemDetail run)
Information about the associated run.
run
- Information about the associated run.public void setJob(ProblemDetail job)
Information about the associated job.
job
- Information about the associated job.public ProblemDetail getJob()
Information about the associated job.
public Problem withJob(ProblemDetail job)
Information about the associated job.
job
- Information about the associated job.public void setSuite(ProblemDetail suite)
Information about the associated suite.
suite
- Information about the associated suite.public ProblemDetail getSuite()
Information about the associated suite.
public Problem withSuite(ProblemDetail suite)
Information about the associated suite.
suite
- Information about the associated suite.public void setTest(ProblemDetail test)
Information about the associated test.
test
- Information about the associated test.public ProblemDetail getTest()
Information about the associated test.
public Problem withTest(ProblemDetail test)
Information about the associated test.
test
- Information about the associated test.public void setDevice(Device device)
Information about the associated device.
device
- Information about the associated device.public Device getDevice()
Information about the associated device.
public Problem withDevice(Device device)
Information about the associated device.
device
- Information about the associated device.public void setResult(java.lang.String result)
The problem's result.
Allowed values include:
PENDING: A pending condition.
PASSED: A passing condition.
WARNED: A warning condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
ERRORED: An error condition.
STOPPED: A stopped condition.
result
- The problem's result.
Allowed values include:
PENDING: A pending condition.
PASSED: A passing condition.
WARNED: A warning condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
ERRORED: An error condition.
STOPPED: A stopped condition.
ExecutionResult
public java.lang.String getResult()
The problem's result.
Allowed values include:
PENDING: A pending condition.
PASSED: A passing condition.
WARNED: A warning condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
ERRORED: An error condition.
STOPPED: A stopped condition.
Allowed values include:
PENDING: A pending condition.
PASSED: A passing condition.
WARNED: A warning condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
ERRORED: An error condition.
STOPPED: A stopped condition.
ExecutionResult
public Problem withResult(java.lang.String result)
The problem's result.
Allowed values include:
PENDING: A pending condition.
PASSED: A passing condition.
WARNED: A warning condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
ERRORED: An error condition.
STOPPED: A stopped condition.
result
- The problem's result.
Allowed values include:
PENDING: A pending condition.
PASSED: A passing condition.
WARNED: A warning condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
ERRORED: An error condition.
STOPPED: A stopped condition.
ExecutionResult
public void setResult(ExecutionResult result)
The problem's result.
Allowed values include:
PENDING: A pending condition.
PASSED: A passing condition.
WARNED: A warning condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
ERRORED: An error condition.
STOPPED: A stopped condition.
result
- The problem's result.
Allowed values include:
PENDING: A pending condition.
PASSED: A passing condition.
WARNED: A warning condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
ERRORED: An error condition.
STOPPED: A stopped condition.
ExecutionResult
public Problem withResult(ExecutionResult result)
The problem's result.
Allowed values include:
PENDING: A pending condition.
PASSED: A passing condition.
WARNED: A warning condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
ERRORED: An error condition.
STOPPED: A stopped condition.
result
- The problem's result.
Allowed values include:
PENDING: A pending condition.
PASSED: A passing condition.
WARNED: A warning condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
ERRORED: An error condition.
STOPPED: A stopped condition.
ExecutionResult
public void setMessage(java.lang.String message)
A message about the problem's result.
message
- A message about the problem's result.public java.lang.String getMessage()
A message about the problem's result.
public Problem withMessage(java.lang.String message)
A message about the problem's result.
message
- A message about the problem's result.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Problem clone()
clone
in class java.lang.Object