public final class TestResult extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
TestResult.Status
The test status
|
Constructor and Description |
---|
TestResult()
Create a empty result.
Start time is set to Current Milliseconds. |
TestResult(TestResult.Status status)
Create a new TestResult.
Start time is set to Current Milliseconds. |
TestResult(TestResult.Status status,
Throwable throwable)
Create a new TestResult.
Start time is set to Current Milliseconds. |
Modifier and Type | Method and Description |
---|---|
long |
getEnd()
Get the end time.
|
ExceptionProxy |
getExceptionProxy() |
long |
getStart()
Get the start time.
|
TestResult.Status |
getStatus()
Get the status of this test
|
Throwable |
getThrowable()
If the test failed, the exception that was thrown.
|
void |
setEnd(long end)
Set the end time of the test.
|
void |
setStart(long start)
Set the start time of the test.
|
void |
setStatus(TestResult.Status status) |
void |
setThrowable(Throwable throwable) |
String |
toString() |
public TestResult()
public TestResult(TestResult.Status status)
status
- The result status.public TestResult(TestResult.Status status, Throwable throwable)
status
- The result status.throwable
- thrown exception if anypublic TestResult.Status getStatus()
public void setStatus(TestResult.Status status)
public Throwable getThrowable()
public void setThrowable(Throwable throwable)
public void setStart(long start)
start
- Start time in millisecondspublic long getStart()
public void setEnd(long end)
End
- time in millisecondspublic long getEnd()
public ExceptionProxy getExceptionProxy()
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.