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()
Deprecated.
|
TestResult(TestResult.Status status)
Deprecated.
|
TestResult(TestResult.Status status,
Throwable throwable)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static TestResult |
failed(Throwable cause) |
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.
|
static TestResult |
passed() |
TestResult |
setEnd(long end)
Set the end time of the test.
|
TestResult |
setStart(long start)
Set the start time of the test.
|
TestResult |
setStatus(TestResult.Status status)
Deprecated.
|
TestResult |
setThrowable(Throwable throwable) |
static TestResult |
skipped(Throwable cause) |
String |
toString() |
@Deprecated public TestResult()
@Deprecated public TestResult(TestResult.Status status)
status
- The result status.@Deprecated public TestResult(TestResult.Status status, Throwable throwable)
status
- The result status.throwable
- thrown exception if anypublic static TestResult passed()
public static TestResult skipped(Throwable cause)
public static TestResult failed(Throwable cause)
public TestResult.Status getStatus()
@Deprecated public TestResult setStatus(TestResult.Status status)
public Throwable getThrowable()
public TestResult setThrowable(Throwable throwable)
public TestResult setStart(long start)
start
- Start time in millisecondspublic long getStart()
public TestResult setEnd(long end)
End
- time in millisecondspublic long getEnd()
public ExceptionProxy getExceptionProxy()
Copyright © 2017 JBoss by Red Hat. All rights reserved.