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,
String description)
Deprecated.
|
TestResult(TestResult.Status status,
Throwable throwable)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addDescription(String description) |
static TestResult |
failed(Throwable cause) |
static TestResult |
flatten(Collection<TestResult> results) |
String |
getDescription() |
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() |
static TestResult |
passed(String description) |
void |
setDescription(String description)
Deprecated.
|
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() |
static TestResult |
skipped(String description) |
static TestResult |
skipped(Throwable cause) |
String |
toString() |
@Deprecated public TestResult(TestResult.Status status, String description)
@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 passed(String description)
public static TestResult skipped(Throwable cause)
public static TestResult skipped(String description)
public static TestResult skipped()
public static TestResult failed(Throwable cause)
public static TestResult flatten(Collection<TestResult> results)
public TestResult.Status getStatus()
@Deprecated public TestResult setStatus(TestResult.Status status)
public String getDescription()
@Deprecated public void setDescription(String description)
public void addDescription(String description)
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 © 2016 JBoss by Red Hat. All rights reserved.